Browse Source

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

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
tags/n4.3
Steven Liu 6 years ago
parent
commit
5b809a8d4b
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/hlsenc.c

+ 2
- 0
libavformat/hlsenc.c 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);



Loading…
Cancel
Save