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

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
Steven Liu 2019-09-07 20:39:28 +08:00
parent 307e0627db
commit 5b809a8d4b

View File

@ -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);