From c12c6c380fa37b6a0d28ce98fdcda487a8aca76d Mon Sep 17 00:00:00 2001 From: lilo_booter Date: Sun, 31 Oct 2004 15:28:33 +0000 Subject: [PATCH] fixes for westley deserialise, preview handling and tokenising amendment git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@495 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/framework/mlt_tokeniser.c | 2 +- src/modules/fezzik.dict | 1 + src/modules/gtk2/factory.c | 16 +++++++++++++--- src/modules/inigo/producer_inigo.c | 4 ++-- src/modules/sdl/consumer_sdl_preview.c | 7 ++++--- src/modules/westley/producer_westley.c | 4 ++-- 6 files changed, 23 insertions(+), 11 deletions(-) diff --git a/src/framework/mlt_tokeniser.c b/src/framework/mlt_tokeniser.c index 053b36f..619a489 100644 --- a/src/framework/mlt_tokeniser.c +++ b/src/framework/mlt_tokeniser.c @@ -102,7 +102,7 @@ int mlt_tokeniser_parse_new( mlt_tokeniser tokeniser, char *string, char *delimi { strncat( token, start, end - start ); index += end - start; - if ( token[ 0 ] != '\"' || ( token[ 0 ] == '\"' && token[ strlen( token ) - 1 ] == '\"' ) ) + if ( strchr( token, '\"' ) == NULL || token[ strlen( token ) - 1 ] == '\"' ) { mlt_tokeniser_append( tokeniser, token ); strcpy( token, "" ); diff --git a/src/modules/fezzik.dict b/src/modules/fezzik.dict index 53da9bd..8e98b38 100644 --- a/src/modules/fezzik.dict +++ b/src/modules/fezzik.dict @@ -1,4 +1,5 @@ http://*=avformat +play = mlt_factory_consumer( "sdl", arg ); this->still = mlt_factory_consumer( "sdl_still", arg ); mlt_properties_set( mlt_consumer_properties( parent ), "real_time", "0" ); + mlt_properties_set( mlt_consumer_properties( parent ), "rescale", "nearest" ); parent->close = consumer_close; parent->start = consumer_start; parent->stop = consumer_stop; @@ -196,6 +197,9 @@ static void *consumer_thread( void *arg ) mlt_properties_set( play, "height", mlt_properties_get( properties, "height" ) ); mlt_properties_set( still, "height", mlt_properties_get( properties, "height" ) ); + mlt_properties_set_int( play, "progressive", 1 ); + mlt_properties_set_int( still, "progressive", 1 ); + mlt_properties_pass( play, mlt_consumer_properties( consumer ), "play." ); mlt_properties_pass( still, mlt_consumer_properties( consumer ), "still." ); @@ -204,9 +208,6 @@ static void *consumer_thread( void *arg ) mlt_properties_set_data( play, "app_unlock", mlt_properties_get_data( properties, "app_unlock", NULL ), 0, NULL, NULL ); mlt_properties_set_data( still, "app_unlock", mlt_properties_get_data( properties, "app_unlock", NULL ), 0, NULL, NULL ); - mlt_properties_set_int( play, "progressive", 1 ); - mlt_properties_set_int( still, "progressive", 1 ); - mlt_properties_set_int( play, "put_mode", 1 ); mlt_properties_set_int( still, "put_mode", 1 ); diff --git a/src/modules/westley/producer_westley.c b/src/modules/westley/producer_westley.c index eb022cd..40e94c1 100644 --- a/src/modules/westley/producer_westley.c +++ b/src/modules/westley/producer_westley.c @@ -550,7 +550,7 @@ static void on_end_producer( deserialise_context context, const xmlChar *name ) else { // Otherwise, set in and out on producer directly - mlt_producer_set_in_and_out( MLT_PRODUCER( service ), in, out ); + mlt_producer_set_in_and_out( MLT_PRODUCER( producer ), in, out ); } } else @@ -559,7 +559,7 @@ static void on_end_producer( deserialise_context context, const xmlChar *name ) mlt_producer_set_in_and_out( MLT_PRODUCER( producer ), in, out ); } } - + // Push the producer onto the stack context_push_service( context, producer, mlt_producer_type ); } -- 1.7.4.4