From: lilo_booter Date: Mon, 9 Feb 2004 13:01:37 +0000 (+0000) Subject: brought by a resizable bunny X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=83a399d6cc0b26c7e0c130656992ac5285946634;p=melted brought by a resizable bunny git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@128 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/src/miracle/miracle_unit.c b/src/miracle/miracle_unit.c index 255dad4..cacdc50 100644 --- a/src/miracle/miracle_unit.c +++ b/src/miracle/miracle_unit.c @@ -582,8 +582,20 @@ void miracle_unit_step( miracle_unit unit, int64_t offset ) int miracle_unit_set( miracle_unit unit, char *name_value ) { - mlt_playlist playlist = mlt_properties_get_data( unit->properties, "playlist", NULL ); - mlt_properties properties = mlt_playlist_properties( playlist ); + mlt_properties properties = NULL; + + if ( strncmp( name_value, "consumer.", 9 ) ) + { + mlt_playlist playlist = mlt_properties_get_data( unit->properties, "playlist", NULL ); + properties = mlt_playlist_properties( playlist ); + } + else + { + mlt_consumer consumer = mlt_properties_get_data( unit->properties, "consumer", NULL ); + properties = mlt_consumer_properties( consumer ); + name_value += 9; + } + return mlt_properties_parse( properties, name_value ); } diff --git a/src/modules/dv/consumer_libdv.c b/src/modules/dv/consumer_libdv.c index 5825cce..e9dbb56 100644 --- a/src/modules/dv/consumer_libdv.c +++ b/src/modules/dv/consumer_libdv.c @@ -213,6 +213,9 @@ static int consumer_encode_video( mlt_consumer this, uint8_t *dv_frame, mlt_fram int height = mlt_properties_get_int( this_properties, "height" ); uint8_t *image = NULL; + if ( mlt_properties_get( this_properties, "rescale" ) != NULL ) + mlt_properties_set( mlt_frame_properties( frame ), "rescale.interp", mlt_properties_get( this_properties, "rescale" ) ); + // Get the image mlt_frame_get_image( frame, &image, &fmt, &width, &height, 0 );