ffplay: signal seek event to read thread
authorMarton Balint <cus@passwd.hu>
Sat, 16 Feb 2013 19:21:13 +0000 (20:21 +0100)
committerMarton Balint <cus@passwd.hu>
Wed, 27 Feb 2013 20:34:12 +0000 (21:34 +0100)
Improves seek delay.

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay.c

index 5a3d1b2..d5a9dc3 100644 (file)
--- a/ffplay.c
+++ b/ffplay.c
@@ -1184,6 +1184,7 @@ static void stream_seek(VideoState *is, int64_t pos, int64_t rel, int seek_by_by
         if (seek_by_bytes)
             is->seek_flags |= AVSEEK_FLAG_BYTE;
         is->seek_req = 1;
+        SDL_CondSignal(is->continue_read_thread);
     }
 }