diff mbox

[FFmpeg-devel,V1,1/2] lavf/hls: More log message

Message ID 1560476150-5011-1-git-send-email-mypopydev@gmail.com
State Accepted
Commit 6f82bf9dd30d7a8d8e4c4978eac2fb540629e508
Headers show

Commit Message

Jun Zhao June 14, 2019, 1:35 a.m. UTC
From: Jun Zhao <barryjzhao@tencent.com>

More log message, it's will help the debugging

Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
---
 libavformat/hls.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

Comments

Steven Liu June 14, 2019, 2:06 a.m. UTC | #1
> 在 2019年6月14日,上午9:35,Jun Zhao <mypopydev@gmail.com> 写道:
> 
> From: Jun Zhao <barryjzhao@tencent.com>
> 
> More log message, it's will help the debugging
> 
> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
> ---
> libavformat/hls.c |    5 +++--
> 1 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/libavformat/hls.c b/libavformat/hls.c
> index b5df9ae..3b1d4fe 100644
> --- a/libavformat/hls.c
> +++ b/libavformat/hls.c
> @@ -849,6 +849,7 @@ static int parse_playlist(HLSContext *c, const char *url,
>             if (ptr)
>                 seg_offset = strtoll(ptr+1, NULL, 10);
>         } else if (av_strstart(line, "#", NULL)) {
> +            av_log(c->ctx, AV_LOG_INFO, "Skip ('%s')\n", line);
>             continue;
>         } else if (line[0]) {
>             if (is_variant) {
> @@ -1398,8 +1399,8 @@ restart:
>         v->needed = playlist_needed(v);
> 
>         if (!v->needed) {
> -            av_log(v->parent, AV_LOG_INFO, "No longer receiving playlist %d\n",
> -                v->index);
> +            av_log(v->parent, AV_LOG_INFO, "No longer receiving playlist %d ('%s')\n",
> +                   v->index, v->url);
>             return AVERROR_EOF;
>         }
> 
> -- 
> 1.7.1
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe”.
LGTM
diff mbox

Patch

diff --git a/libavformat/hls.c b/libavformat/hls.c
index b5df9ae..3b1d4fe 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -849,6 +849,7 @@  static int parse_playlist(HLSContext *c, const char *url,
             if (ptr)
                 seg_offset = strtoll(ptr+1, NULL, 10);
         } else if (av_strstart(line, "#", NULL)) {
+            av_log(c->ctx, AV_LOG_INFO, "Skip ('%s')\n", line);
             continue;
         } else if (line[0]) {
             if (is_variant) {
@@ -1398,8 +1399,8 @@  restart:
         v->needed = playlist_needed(v);
 
         if (!v->needed) {
-            av_log(v->parent, AV_LOG_INFO, "No longer receiving playlist %d\n",
-                v->index);
+            av_log(v->parent, AV_LOG_INFO, "No longer receiving playlist %d ('%s')\n",
+                   v->index, v->url);
             return AVERROR_EOF;
         }