]> git.sesse.net Git - mlt/blobdiff - src/modules/core/producer_consumer.c
replace legacy real_width and _height with meta.media.width and .height
[mlt] / src / modules / core / producer_consumer.c
index 4c11c4a423c6bc0adbdef1aadb20eed790807436..e31fc84e6440c93d0f79e2c0cd4bdfbc689d6cb9 100644 (file)
@@ -141,6 +141,7 @@ static int get_frame( mlt_producer this, mlt_frame_ptr frame, int index )
 
                // Since we control the seeking, prevent it from seeking on its own
                mlt_producer_set_speed( cx->producer, 0 );
+               cx->audio_position = -1;
 
                // We will encapsulate a consumer
                cx->consumer = mlt_consumer_new( cx->profile );
@@ -191,8 +192,8 @@ static int get_frame( mlt_producer this, mlt_frame_ptr frame, int index )
                mlt_properties_set_double( frame_props, "aspect_ratio", mlt_profile_sar( cx->profile ) );
                mlt_properties_set_int( frame_props, "width", cx->profile->width );
                mlt_properties_set_int( frame_props, "height", cx->profile->height );
-               mlt_properties_set_int( frame_props, "real_width", cx->profile->width );
-               mlt_properties_set_int( frame_props, "real_height", cx->profile->height );
+               mlt_properties_set_int( frame_props, "meta.media.width", cx->profile->width );
+               mlt_properties_set_int( frame_props, "meta.media.height", cx->profile->height );
                mlt_properties_set_int( frame_props, "progressive", cx->profile->progressive );
        }
 
@@ -226,6 +227,7 @@ mlt_producer producer_consumer_init( mlt_profile profile, mlt_service_type type,
 
        // Encapsulate the real producer
        mlt_profile temp_profile = mlt_profile_clone( profile );
+       temp_profile->is_explicit = 0;
        mlt_producer real_producer = mlt_factory_producer( temp_profile, NULL, arg );
 
        if ( this && real_producer )