ffplay: only quit from audio_decode_frame before decoding when paused
authorMarton Balint <cus@passwd.hu>
Sat, 16 Feb 2013 19:56:19 +0000 (20:56 +0100)
committerMarton Balint <cus@passwd.hu>
Wed, 27 Feb 2013 20:34:12 +0000 (21:34 +0100)
This way the audio clock is updated to a proper value even when the video is
paused.

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

index ed53023..4f24a32 100644 (file)
--- a/ffplay.c
+++ b/ffplay.c
@@ -2196,7 +2196,7 @@ static int audio_decode_frame(VideoState *is)
             av_free_packet(pkt);
         memset(pkt_temp, 0, sizeof(*pkt_temp));
 
-        if (is->paused || is->audioq.abort_request) {
+        if (is->audioq.abort_request) {
             return -1;
         }