mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 13:10:37 +00:00
lavf/applehttp: add log message in case of applehttp_read_header() failure
Improve error reporting.
This commit is contained in:
parent
e8e733adcc
commit
d9355a03f2
@ -519,6 +519,7 @@ static int hls_read_header(AVFormatContext *s)
|
|||||||
* so avformat_close_input shouldn't be called. If
|
* so avformat_close_input shouldn't be called. If
|
||||||
* avformat_open_input fails below, it frees and zeros the
|
* avformat_open_input fails below, it frees and zeros the
|
||||||
* context, so it doesn't need any special treatment like this. */
|
* context, so it doesn't need any special treatment like this. */
|
||||||
|
av_log(s, AV_LOG_ERROR, "Error when loading first segment '%s'\n", v->segments[0]->url);
|
||||||
avformat_free_context(v->ctx);
|
avformat_free_context(v->ctx);
|
||||||
v->ctx = NULL;
|
v->ctx = NULL;
|
||||||
goto fail;
|
goto fail;
|
||||||
|
Loading…
Reference in New Issue
Block a user