if ( !this->running )
{
- pthread_attr_t thread_attributes;
-
// Attach a colour space converter
if ( !this->filtered )
{
//this->width = this->height * this->display_aspect;
- // Inherit the scheduling priority
- pthread_attr_init( &thread_attributes );
- pthread_attr_setinheritsched( &thread_attributes, PTHREAD_INHERIT_SCHED );
-
- pthread_create( &this->thread, &thread_attributes, consumer_thread, this );
+ pthread_create( &this->thread, NULL, consumer_thread, this );
}
return 0;
}
else
{
- changed = mlt_properties_get_int( properties, "changed" ) | mlt_properties_get_int( MLT_FRAME_PROPERTIES( frame ), "refresh" );
+ changed = 1;
mlt_properties_set_int( properties, "changed", 0 );
}
consumer_play_video( this, frame );
mlt_frame_close( frame );
}
+ else
+ {
+ this->running = 0;
+ }
}
if ( mlt_properties_get_int( MLT_CONSUMER_PROPERTIES( consumer ), "sdl_started" ) == 0 )