]> git.sesse.net Git - mlt/commitdiff
Speed switch corrections
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Sun, 6 Feb 2005 08:16:57 +0000 (08:16 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Sun, 6 Feb 2005 08:16:57 +0000 (08:16 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@661 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/sdl/consumer_sdl_preview.c
src/modules/sdl/consumer_sdl_still.c

index ec383ab2e06c57eacc201770e83fcd520665113b..db2cc40206ec5c897eb953af587b48264aa6662d 100644 (file)
@@ -354,9 +354,9 @@ static void *consumer_thread( void *arg )
                        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 );
                        }
 
index a5ede1aff20642e355dbf7050686f3824cd7d58f..bc4489aded1db4fb054d59f3e113c3618b44595b 100644 (file)
@@ -418,7 +418,7 @@ static int consumer_play_video( consumer_sdl this, mlt_frame frame )
        }
        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 );
        }