diff mbox series

[FFmpeg-devel] avcodec/hlsenc: Fix playlist not getting flushed when using custom io

Message ID jEvXCPd62-l3N_Og7qvspGT4d-IjqEv2RUL_7MDeesgm_eg9_Lj6d72UwIDCrSDj4zsunpEo3QH9Qqu46t-k70lYUItiWxWYEbF1uIg-ifA=@pm.me
State New
Headers show
Series [FFmpeg-devel] avcodec/hlsenc: Fix playlist not getting flushed when using custom io
Related show

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Steve Lam Sept. 6, 2020, 7:22 p.m. UTC
---
 libavformat/hlsenc.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Steven Liu Sept. 7, 2020, 10:46 a.m. UTC | #1
Steve Lam <steviewc@pm.me> 于2020年9月7日周一 上午3:23写道:
>
> ---
>  libavformat/hlsenc.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
> index cb31d6aed7..fdfa907234 100644
> --- a/libavformat/hlsenc.c
> +++ b/libavformat/hlsenc.c
> @@ -287,6 +287,7 @@ static int hlsenc_io_close(AVFormatContext *s, AVIOContext **pb, char *filename)
>      if (!*pb)
>          return ret;
>      if (!http_base_proto || !hls->http_persistent || hls->key_info_file || hls->encrypt) {
> +        avio_flush(*pb);
>          ff_format_io_close(s, pb);
>  #if CONFIG_HTTP_PROTOCOL
>      } else {
> --
> 2.17.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/hlsenc.c b/libavformat/hlsenc.c
index cb31d6aed7..fdfa907234 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -287,6 +287,7 @@  static int hlsenc_io_close(AVFormatContext *s, AVIOContext **pb, char *filename)
     if (!*pb)
         return ret;
     if (!http_base_proto || !hls->http_persistent || hls->key_info_file || hls->encrypt) {
+        avio_flush(*pb);
         ff_format_io_close(s, pb);
 #if CONFIG_HTTP_PROTOCOL
     } else {