summaryrefslogtreecommitdiffstats
path: root/stream/stream_lavf.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-21 20:36:45 +0100
committerwm4 <wm4@nowhere>2013-12-21 21:43:16 +0100
commit0335011f11d9d13f70db6c46ed6189a74d48ec67 (patch)
tree03a146b06b5a8c405f5c521abadeeea35c296920 /stream/stream_lavf.c
parent3dbc9007b080028f0aebbbf8b9ab1233cd70c45b (diff)
downloadmpv-0335011f11d9d13f70db6c46ed6189a74d48ec67.tar.bz2
mpv-0335011f11d9d13f70db6c46ed6189a74d48ec67.tar.xz
stream: mp_msg conversions
We also drop some slave mode stuff from stream_vcd.
Diffstat (limited to 'stream/stream_lavf.c')
-rw-r--r--stream/stream_lavf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/stream/stream_lavf.c b/stream/stream_lavf.c
index 5a14cbdeb5..a161c19cf9 100644
--- a/stream/stream_lavf.c
+++ b/stream/stream_lavf.c
@@ -142,14 +142,14 @@ static int open_f(stream_t *stream, int mode)
else if (mode == STREAM_WRITE)
flags = AVIO_FLAG_WRITE;
else {
- mp_msg(MSGT_OPEN, MSGL_ERR, "[ffmpeg] Unknown open mode %d\n", mode);
+ MP_ERR(stream, "[ffmpeg] Unknown open mode %d\n", mode);
res = STREAM_UNSUPPORTED;
goto out;
}
const char *filename = stream->url;
if (!filename) {
- mp_msg(MSGT_OPEN, MSGL_ERR, "[ffmpeg] No URL\n");
+ MP_ERR(stream, "[ffmpeg] No URL\n");
goto out;
}
for (int i = 0; i < sizeof(prefix) / sizeof(prefix[0]); i++)
@@ -168,7 +168,7 @@ static int open_f(stream_t *stream, int mode)
talloc_free(temp);
return STREAM_OK;
}
- mp_msg(MSGT_OPEN, MSGL_V, "[ffmpeg] Opening %s\n", filename);
+ MP_VERBOSE(stream, "[ffmpeg] Opening %s\n", filename);
// Replace "mms://" with "mmsh://", so that most mms:// URLs just work.
bstr b_filename = bstr0(filename);
@@ -182,7 +182,7 @@ static int open_f(stream_t *stream, int mode)
if (network_useragent)
av_dict_set(&dict, "user-agent", network_useragent, 0);
if (network_cookies_enabled)
- av_dict_set(&dict, "cookies", talloc_steal(temp, cookies_lavf()), 0);
+ av_dict_set(&dict, "cookies", talloc_steal(temp, cookies_lavf(stream->log)), 0);
av_dict_set(&dict, "tls_verify", network_tls_verify ? "1" : "0", 0);
if (network_tls_ca_file)
av_dict_set(&dict, "ca_file", network_tls_ca_file, 0);
@@ -204,14 +204,14 @@ static int open_f(stream_t *stream, int mode)
int err = avio_open2(&avio, filename, flags, NULL, &dict);
if (err < 0) {
if (err == AVERROR_PROTOCOL_NOT_FOUND)
- mp_msg(MSGT_OPEN, MSGL_ERR, "[ffmpeg] Protocol not found. Make sure"
+ MP_ERR(stream, "[ffmpeg] Protocol not found. Make sure"
" ffmpeg/Libav is compiled with networking support.\n");
goto out;
}
AVDictionaryEntry *t = NULL;
while ((t = av_dict_get(dict, "", t, AV_DICT_IGNORE_SUFFIX))) {
- mp_msg(MSGT_OPEN, MSGL_V, "[ffmpeg] Could not set stream option %s=%s\n",
+ MP_VERBOSE(stream, "[ffmpeg] Could not set stream option %s=%s\n",
t->key, t->value);
}