[FFmpeg-cvslog] avformat/http: add "Opening" info logging to ff_http_do_new_request
Aman Gupta
git at videolan.org
Sat Dec 23 01:00:32 EET 2017
ffmpeg | branch: master | Aman Gupta <aman at tmm1.net> | Tue Dec 12 16:02:09 2017 -0800| [9395e44b8d20d1d4c72dd5b42d28721ca191d957] | committer: Aman Gupta
avformat/http: add "Opening" info logging to ff_http_do_new_request
This mimics logging that was added in 53e0d5d7247 for security
purposes.
Signed-off-by: Aman Gupta <aman at tmm1.net>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9395e44b8d20d1d4c72dd5b42d28721ca191d957
---
libavformat/http.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/http.c b/libavformat/http.c
index a3c36423fc..ffdf11cf7e 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -336,6 +336,7 @@ int ff_http_do_new_request(URLContext *h, const char *uri)
if (!s->location)
return AVERROR(ENOMEM);
+ av_log(s, AV_LOG_INFO, "Opening \'%s\' for %s\n", uri, h->flags & AVIO_FLAG_WRITE ? "writing" : "reading");
ret = http_open_cnx(h, &options);
av_dict_free(&options);
return ret;
More information about the ffmpeg-cvslog
mailing list