]> git.sesse.net Git - mlt/commitdiff
brought by a resizable bunny
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 9 Feb 2004 13:01:37 +0000 (13:01 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 9 Feb 2004 13:01:37 +0000 (13:01 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@128 d19143bc-622f-0410-bfdd-b5b2a6649095

src/miracle/miracle_unit.c
src/modules/dv/consumer_libdv.c

index 255dad47ca0f5ef4bbe78a11285dba821995310c..cacdc506cc87c250ca11ff64cef92b7cbc8ef622 100644 (file)
@@ -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 );
 }
 
index 5825cce39b44c26e930e1fbf58d2c533ef25b627..e9dbb5613067a680d70312a439a482f2d2835a8c 100644 (file)
@@ -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 );