ffplay: do not drain existing filters when seeking

After a seek we drop all frames from the filter anyway. Audio filters already
had a similar approach.

Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Marton Balint 2018-08-25 20:42:55 +02:00
parent 320b631a99
commit 9fee22dbdd
1 changed files with 2 additions and 0 deletions

View File

@ -2211,6 +2211,8 @@ static int video_thread(void *arg)
ret = queue_picture(is, frame, pts, duration, frame->pkt_pos, is->viddec.pkt_serial);
av_frame_unref(frame);
#if CONFIG_AVFILTER
if (is->videoq.serial != is->viddec.pkt_serial)
break;
}
#endif