Skip to content

Commit

Permalink
fix synchronizing consumer properties with the profile
Browse files Browse the repository at this point in the history
If you change the profile struct then you can stop and restart the
consumer for the changes to take affect. Previously, you had to close
the consumer and re-open it.
  • Loading branch information
ddennedy committed Sep 4, 2012
1 parent 42d9d59 commit 089f7af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/framework/mlt_consumer.c
Expand Up @@ -449,6 +449,9 @@ int mlt_consumer_start( mlt_consumer self )
mlt_properties_set_data( properties, "test_card_producer", NULL, 0, NULL, NULL );
}

// The profile could have changed between a stop and a restart.
apply_profile_properties( self, mlt_service_profile( MLT_CONSUMER_SERVICE(self) ), properties );

// Set the frame duration in microseconds for the frame-dropping heuristic
int frame_rate_num = mlt_properties_get_int( properties, "frame_rate_num" );
int frame_rate_den = mlt_properties_get_int( properties, "frame_rate_den" );
Expand Down

0 comments on commit 089f7af

Please sign in to comment.