diff options
author | RiCON <wiiaboo@users.noreply.github.com> | 2016-09-18 03:19:01 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-18 11:31:11 +0200 |
commit | 554c3a1bda4b3274b7861c3a2c31bbce03a9fa7e (patch) | |
tree | 96a83806766abedde6ab9290be0c948a52332058 /stream | |
parent | cb604d5412f0eb87d030d75f5ca44370fdfa26f6 (diff) | |
download | mpv-554c3a1bda4b3274b7861c3a2c31bbce03a9fa7e.tar.bz2 mpv-554c3a1bda4b3274b7861c3a2c31bbce03a9fa7e.tar.xz |
stream/stream_lavf: user-agent option is deprecated
There was both user-agent and user_agent options, the former is deprecated in FFmpeg/FFmpeg@27714b462 master.
Libav uses both forms.
This avoids constant `[ffmpeg] http: the user-agent option is deprecated, please use user_agent option` warnings using ytdl_hook.
Diffstat (limited to 'stream')
-rw-r--r-- | stream/stream_lavf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream_lavf.c b/stream/stream_lavf.c index 75508ac009..bd4e629136 100644 --- a/stream/stream_lavf.c +++ b/stream/stream_lavf.c @@ -182,7 +182,7 @@ void mp_setup_av_network_options(AVDictionary **dict, struct mpv_global *global, // HTTP specific options (other protocols ignore them) if (opts->useragent) - av_dict_set(dict, "user-agent", opts->useragent, 0); + av_dict_set(dict, "user_agent", opts->useragent, 0); if (opts->cookies_enabled) { char *file = opts->cookies_file; if (file && file[0]) |