summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-08-02 03:12:09 +0200
committerwm4 <wm4@nowhere>2014-08-02 03:12:33 +0200
commitd68a759fa4dea2701087039c58961757eb246b4f (patch)
tree07efabb3a1bf1bdcc0b80f6150f996aacf293ca6 /stream
parent0c6c2da8bcdb0f1523c0f10bc117c41057875e34 (diff)
downloadmpv-d68a759fa4dea2701087039c58961757eb246b4f.tar.bz2
mpv-d68a759fa4dea2701087039c58961757eb246b4f.tar.xz
Improve setting AVOptions
Use OPT_KEYVALUELIST() for all places where AVOptions are directly set from mpv command line options. This allows escaping values, better diagnostics (also no more "pal"), and somehow reduces code size. Remove the old crappy option parser (av_opts.c).
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_lavf.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/stream/stream_lavf.c b/stream/stream_lavf.c
index 8d8ceb3f94..c84945eba7 100644
--- a/stream/stream_lavf.c
+++ b/stream/stream_lavf.c
@@ -229,11 +229,7 @@ static int open_f(stream_t *stream)
goto out;
}
- AVDictionaryEntry *t = NULL;
- while ((t = av_dict_get(dict, "", t, AV_DICT_IGNORE_SUFFIX))) {
- MP_VERBOSE(stream, "Could not set stream option %s=%s\n",
- t->key, t->value);
- }
+ mp_avdict_print_unset(stream->log, MSGL_V, dict);
if (avio->av_class) {
uint8_t *mt = NULL;