ffplay: signal seek event to read thread

Improves seek delay.

Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Marton Balint 2013-02-16 20:21:13 +01:00
parent 2ecf564f94
commit 4be7d578a3

View File

@ -1184,6 +1184,7 @@ static void stream_seek(VideoState *is, int64_t pos, int64_t rel, int seek_by_by
if (seek_by_bytes) if (seek_by_bytes)
is->seek_flags |= AVSEEK_FLAG_BYTE; is->seek_flags |= AVSEEK_FLAG_BYTE;
is->seek_req = 1; is->seek_req = 1;
SDL_CondSignal(is->continue_read_thread);
} }
} }