X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_consumer.c;h=67578e6feda62dba530190a154386896fbd4971d;hb=0f6ab868f4253de21c81a9ba5a83efa598974ced;hp=f0e21e338071d1751d1204e8c968e78d0cb8e2bb;hpb=6159bd78fa8e72c784747776a2c4c63d9c461ff5;p=melted diff --git a/src/framework/mlt_consumer.c b/src/framework/mlt_consumer.c index f0e21e3..67578e6 100644 --- a/src/framework/mlt_consumer.c +++ b/src/framework/mlt_consumer.c @@ -162,8 +162,16 @@ mlt_frame mlt_consumer_get_frame( mlt_consumer this ) int mlt_consumer_stop( mlt_consumer this ) { + // Get the properies + mlt_properties properties = mlt_consumer_properties( this ); + + // Stop the consumer if ( this->stop != NULL ) return this->stop( this ); + + // Kill the test card + mlt_properties_set_data( properties, "test_card_producer", NULL, 0, NULL, NULL ); + return 0; } @@ -172,16 +180,10 @@ int mlt_consumer_stop( mlt_consumer this ) int mlt_consumer_is_stopped( mlt_consumer this ) { - // Get the properies - mlt_properties properties = mlt_consumer_properties( this ); - // Stop the consumer if ( this->is_stopped != NULL ) return this->is_stopped( this ); - // Kill the test card - mlt_properties_set_data( properties, "test_card_producer", NULL, 0, NULL, NULL ); - return 0; }