[FFmpeg-cvslog] avformat/hlsenc: print warning at the end when upload the last segment failed

Steven Liu git at videolan.org
Thu Sep 12 06:17:41 EEST 2019


ffmpeg | branch: master | Steven Liu <lq at chinaffmpeg.org> | Sat Sep  7 20:39:28 2019 +0800| [5b809a8d4bc8523a4b4ccb6e7b8ffa8bfc178106] | committer: Steven Liu

avformat/hlsenc: print warning at the end when upload the last segment failed

Signed-off-by: Steven Liu <lq at chinaffmpeg.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5b809a8d4bc8523a4b4ccb6e7b8ffa8bfc178106
---

 libavformat/hlsenc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index e03db5f5b9..c9858f21bf 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -2601,6 +2601,8 @@ static int hls_write_trailer(struct AVFormatContext *s)
             }
             reflush_dynbuf(vs, &range_length);
             ret = hlsenc_io_close(s, &vs->out, filename);
+            if (ret < 0)
+                av_log(s, AV_LOG_WARNING, "Failed to upload file '%s' at the end.\n", vs->avf->url);
         }
         av_free(vs->temp_buffer);
 



More information about the ffmpeg-cvslog mailing list