]> git.sesse.net Git - ffmpeg/commit
ffplay: replace SDL_delay in read thread with SDL_CondWait
authorMarton Balint <cus@passwd.hu>
Mon, 27 Aug 2012 22:00:15 +0000 (00:00 +0200)
committerMarton Balint <cus@passwd.hu>
Fri, 31 Aug 2012 19:00:20 +0000 (21:00 +0200)
commit0e5042be284182823223a8c3d0006298ba16c921
treededadc04d0cddb4293150d204dc8ee061e96662d
parent4a45e722e373c85cae7b5d57fb6bb7e295e664e0
ffplay: replace SDL_delay in read thread with SDL_CondWait

When the audio queue was empty, it was not filled until the 10ms delay expired
in the read thread. This patch changes the delay method with a condition wait,
which reacts to an empty queue a lot faster, therefore the audio buffer
underruns become less common especially after seeking.

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