[FFmpeg-cvslog] lavf/applehttp: add log message in case of applehttp_read_header() failure

Stefano Sabatini git at videolan.org
Fri Jun 29 14:51:55 CEST 2012


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Sat Jan 14 02:49:38 2012 +0100| [d9355a03f215be217e9cb15bf317bb27afa9b90c] | committer: Stefano Sabatini

lavf/applehttp: add log message in case of applehttp_read_header() failure

Improve error reporting.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d9355a03f215be217e9cb15bf317bb27afa9b90c
---

 libavformat/hls.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/hls.c b/libavformat/hls.c
index 40c417a..1449f40 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -519,6 +519,7 @@ static int hls_read_header(AVFormatContext *s)
              * so avformat_close_input shouldn't be called. If
              * avformat_open_input fails below, it frees and zeros the
              * 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);
             v->ctx = NULL;
             goto fail;



More information about the ffmpeg-cvslog mailing list