avformat/http: add "Opening" info logging to ff_http_do_new_request

This mimics logging that was added in 53e0d5d724 for security
purposes.

Signed-off-by: Aman Gupta <aman@tmm1.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/274/head
Aman Gupta 7 years ago
parent 28358e466d
commit 9395e44b8d
  1. 1
      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;

Loading…
Cancel
Save