mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-13 21:26:33 +02:00
avformat/hls: add some logging messages
Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi>
This commit is contained in:
parent
da7759b357
commit
f7c7fc1369
@ -629,6 +629,9 @@ static int open_input(HLSContext *c, struct playlist *pls)
|
|||||||
av_dict_set(&opts, "end_offset", end_offset, 0);
|
av_dict_set(&opts, "end_offset", end_offset, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
av_log(pls->parent, AV_LOG_VERBOSE, "HLS request for url '%s', offset %"PRId64", playlist %d\n",
|
||||||
|
seg->url, seg->url_offset, pls->index);
|
||||||
|
|
||||||
if (seg->key_type == KEY_NONE) {
|
if (seg->key_type == KEY_NONE) {
|
||||||
ret = ffurl_open(&pls->input, seg->url, AVIO_FLAG_READ,
|
ret = ffurl_open(&pls->input, seg->url, AVIO_FLAG_READ,
|
||||||
&pls->parent->interrupt_callback, &opts);
|
&pls->parent->interrupt_callback, &opts);
|
||||||
@ -716,8 +719,11 @@ restart:
|
|||||||
reload:
|
reload:
|
||||||
if (!v->finished &&
|
if (!v->finished &&
|
||||||
av_gettime() - v->last_load_time >= reload_interval) {
|
av_gettime() - v->last_load_time >= reload_interval) {
|
||||||
if ((ret = parse_playlist(c, v->url, v, NULL)) < 0)
|
if ((ret = parse_playlist(c, v->url, v, NULL)) < 0) {
|
||||||
|
av_log(v->parent, AV_LOG_WARNING, "Failed to reload playlist %d\n",
|
||||||
|
v->index);
|
||||||
return ret;
|
return ret;
|
||||||
|
}
|
||||||
/* If we need to reload the playlist again below (if
|
/* If we need to reload the playlist again below (if
|
||||||
* there's still no more segments), switch to a reload
|
* there's still no more segments), switch to a reload
|
||||||
* interval of half the target duration. */
|
* interval of half the target duration. */
|
||||||
@ -742,8 +748,11 @@ reload:
|
|||||||
}
|
}
|
||||||
|
|
||||||
ret = open_input(c, v);
|
ret = open_input(c, v);
|
||||||
if (ret < 0)
|
if (ret < 0) {
|
||||||
|
av_log(v->parent, AV_LOG_WARNING, "Failed to open segment of playlist %d\n",
|
||||||
|
v->index);
|
||||||
return ret;
|
return ret;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* limit read if the segment was only a part of a file */
|
/* limit read if the segment was only a part of a file */
|
||||||
seg = v->segments[v->cur_seq_no - v->start_seq_no];
|
seg = v->segments[v->cur_seq_no - v->start_seq_no];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user