]> git.sesse.net Git - mlt/commitdiff
let 'mlt_profile' be a synonym for 'profile'
authorDan Dennedy <dan@dennedy.org>
Mon, 21 Nov 2011 07:25:20 +0000 (23:25 -0800)
committerDan Dennedy <dan@dennedy.org>
Mon, 21 Nov 2011 07:25:20 +0000 (23:25 -0800)
to be consistent with consumer property name for setting profile

src/modules/core/producer_consumer.c

index 99831ee952b342dc0399bada157a6a4ff674ed0a..4c11c4a423c6bc0adbdef1aadb20eed790807436 100644 (file)
@@ -113,6 +113,8 @@ static int get_frame( mlt_producer this, mlt_frame_ptr frame, int index )
                mlt_properties_set_data( properties, "context", cx, 0, mlt_pool_release, NULL );
                cx->this = this;
                char *profile_name = mlt_properties_get( properties, "profile" );
+               if ( !profile_name )
+                       profile_name = mlt_properties_get( properties, "mlt_profile" );
                mlt_profile profile = mlt_service_profile( MLT_PRODUCER_SERVICE( this ) );
 
                if ( profile_name )