diff mbox series

[FFmpeg-devel,2/3] lavf/hlsdec: use public avformat_flush function

Message ID 20200219002150.27705-2-rcombs@rcombs.me
State New
Headers show
Series [FFmpeg-devel,1/3] lavf: add read_flush function to AVInputFormat vtable
Related show

Checks

Context Check Description
andriy/ffmpeg-patchwork pending
andriy/ffmpeg-patchwork success Applied patch
andriy/ffmpeg-patchwork success Configure finished
andriy/ffmpeg-patchwork success Make finished
andriy/ffmpeg-patchwork success Make fate finished

Commit Message

rcombs Feb. 19, 2020, 12:21 a.m. UTC
---
 libavformat/hls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Steven Liu Feb. 19, 2020, 2:32 a.m. UTC | #1
> 2020年2月19日 上午8:21,rcombs <rcombs@rcombs.me> 写道:
> 
> ---
> libavformat/hls.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavformat/hls.c b/libavformat/hls.c
> index 1f58e745a7..8181a631b6 100644
> --- a/libavformat/hls.c
> +++ b/libavformat/hls.c
> @@ -2295,7 +2295,7 @@ static int hls_read_seek(AVFormatContext *s, int stream_index,
>         /* Reset the pos, to let the mpegts demuxer know we've seeked. */
>         pls->pb.pos = 0;
>         /* Flush the packet queue of the subdemuxer. */
> -        ff_read_frame_flush(pls->ctx);
> +        avformat_flush(pls->ctx);
> 
>         pls->seek_timestamp = seek_timestamp;
>         pls->seek_flags = flags;
> -- 
> 2.24.1
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe”.
LGTM


Thanks
Steven
diff mbox series

Patch

diff --git a/libavformat/hls.c b/libavformat/hls.c
index 1f58e745a7..8181a631b6 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -2295,7 +2295,7 @@  static int hls_read_seek(AVFormatContext *s, int stream_index,
         /* Reset the pos, to let the mpegts demuxer know we've seeked. */
         pls->pb.pos = 0;
         /* Flush the packet queue of the subdemuxer. */
-        ff_read_frame_flush(pls->ctx);
+        avformat_flush(pls->ctx);
 
         pls->seek_timestamp = seek_timestamp;
         pls->seek_flags = flags;