From 8b9aa0d55d7a04ee7f98fa6f1c6209a6522ea28e Mon Sep 17 00:00:00 2001 From: lilo_booter Date: Sun, 6 Feb 2005 08:16:57 +0000 Subject: [PATCH] Speed switch corrections 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 | 4 ++-- src/modules/sdl/consumer_sdl_still.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/sdl/consumer_sdl_preview.c b/src/modules/sdl/consumer_sdl_preview.c index ec383ab..db2cc40 100644 --- a/src/modules/sdl/consumer_sdl_preview.c +++ b/src/modules/sdl/consumer_sdl_preview.c @@ -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 ); } diff --git a/src/modules/sdl/consumer_sdl_still.c b/src/modules/sdl/consumer_sdl_still.c index a5ede1a..bc4489a 100644 --- a/src/modules/sdl/consumer_sdl_still.c +++ b/src/modules/sdl/consumer_sdl_still.c @@ -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 ); } -- 1.7.4.4