You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
libavformat/hlsenc: Remove duplicate close of the output stream.
The result of the first close attempt is ignored and may be lost. By removing it we ensure the close result code is properly analyzed.
This commit is contained in:
committed by
Steven Liu
parent
57ea0483af
commit
93a435dd4b
@@ -2629,7 +2629,6 @@ static int hls_write_trailer(struct AVFormatContext *s)
|
|||||||
goto failed;
|
goto failed;
|
||||||
|
|
||||||
vs->size = range_length;
|
vs->size = range_length;
|
||||||
hlsenc_io_close(s, &vs->out, filename);
|
|
||||||
ret = hlsenc_io_close(s, &vs->out, filename);
|
ret = hlsenc_io_close(s, &vs->out, filename);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
av_log(s, AV_LOG_WARNING, "upload segment failed, will retry with a new http session.\n");
|
av_log(s, AV_LOG_WARNING, "upload segment failed, will retry with a new http session.\n");
|
||||||
|
Reference in New Issue
Block a user