[1/2] hls: Tell the actual segment being opened in verbose mode

Message ID 20180215202030.13197-1-lu_zero@gentoo.org
State New
Headers show
Series
  • [1/2] hls: Tell the actual segment being opened in verbose mode
Related show

Commit Message

Luca Barbato Feb. 15, 2018, 8:20 p.m.
---
 libavformat/hls.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Vittorio Giovara Feb. 16, 2018, 3:18 a.m. | #1
On Thu, Feb 15, 2018 at 3:20 PM, Luca Barbato <lu_zero@gentoo.org> wrote:

> ---
>  libavformat/hls.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/libavformat/hls.c b/libavformat/hls.c
> index c9da4e30ec..5aa633269f 100644
> --- a/libavformat/hls.c
> +++ b/libavformat/hls.c
> @@ -362,6 +362,7 @@ static int open_input(struct variant *var)
>  {
>      HLSContext *c = var->parent->priv_data;
>      struct segment *seg = var->segments[var->cur_seq_no -
> var->start_seq_no];
> +    av_log(var->parent, AV_LOG_VERBOSE, "Opening %s\n", seg->url);
>      if (seg->key_type == KEY_NONE) {
>          return open_url(var->parent, &var->input, seg->url, c->avio_opts);
>      } else if (seg->key_type == KEY_AES_128) {
> --
>
>
seems fine

Patch

diff --git a/libavformat/hls.c b/libavformat/hls.c
index c9da4e30ec..5aa633269f 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -362,6 +362,7 @@  static int open_input(struct variant *var)
 {
     HLSContext *c = var->parent->priv_data;
     struct segment *seg = var->segments[var->cur_seq_no - var->start_seq_no];
+    av_log(var->parent, AV_LOG_VERBOSE, "Opening %s\n", seg->url);
     if (seg->key_type == KEY_NONE) {
         return open_url(var->parent, &var->input, seg->url, c->avio_opts);
     } else if (seg->key_type == KEY_AES_128) {