git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@661
d19143bc-622f-0410-bfdd-
b5b2a6649095
if ( this->active == this->still )
{
pthread_mutex_lock( &this->refresh_mutex );
- if ( speed == 0 && this->refresh_count == 0 )
+ if ( speed == 0 && this->refresh_count <= 0 )
pthread_cond_wait( &this->refresh_cond, &this->refresh_mutex );
- this->refresh_count = 0;
+ this->refresh_count --;
pthread_mutex_unlock( &this->refresh_mutex );
}
}
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 );
}