From c60112f26873afafb55d24cc50a0e93ad9411373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Wed, 20 Apr 2011 11:40:29 +0200 Subject: libavformat: Make protocols pass URLContext as log context where available MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since the libavformat major bump, URLContext contains an AVClass, making it a usable log context. Signed-off-by: Martin Storsjö --- libavformat/gopher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/gopher.c') diff --git a/libavformat/gopher.c b/libavformat/gopher.c index 1d38cd232f..79d1feba6b 100644 --- a/libavformat/gopher.c +++ b/libavformat/gopher.c @@ -50,7 +50,7 @@ static int gopher_connect(URLContext *h, const char *path) if (!path) return AVERROR(EINVAL); break; default: - av_log(NULL, AV_LOG_WARNING, + av_log(h, AV_LOG_WARNING, "Gopher protocol type '%c' not supported yet!\n", *path); return AVERROR(EINVAL); -- cgit v1.2.3