From 23e77f0e33b706ffdcf31a22189a61f1283aaa18 Mon Sep 17 00:00:00 2001 From: Marton Balint Date: Thu, 30 Jan 2014 00:55:18 +0100 Subject: [PATCH] ffplay: flush subtitle codecs as well with null packets Signed-off-by: Marton Balint --- ffplay.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ffplay.c b/ffplay.c index 0e173dc8a0..b161e8c23a 100644 --- a/ffplay.c +++ b/ffplay.c @@ -2948,6 +2948,8 @@ static int read_thread(void *arg) packet_queue_put_nullpacket(&is->videoq, is->video_stream); if (is->audio_stream >= 0) packet_queue_put_nullpacket(&is->audioq, is->audio_stream); + if (is->subtitle_stream >= 0) + packet_queue_put_nullpacket(&is->subtitleq, is->subtitle_stream); SDL_Delay(10); eof=0; continue;