diff options
author | Steven Liu <lq@chinaffmpeg.org> | 2019-09-07 20:39:28 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2019-09-12 10:39:15 +0800 |
commit | 5b809a8d4bc8523a4b4ccb6e7b8ffa8bfc178106 (patch) | |
tree | fd8d30a54f20c8fc2bbcd24c7711ad4edd47aace /libavformat | |
parent | 307e0627dbdc491896591eecc1c904624cfc517c (diff) | |
download | ffmpeg-5b809a8d4bc8523a4b4ccb6e7b8ffa8bfc178106.tar.gz |
avformat/hlsenc: print warning at the end when upload the last segment failed
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/hlsenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |