Skip to content

Commit

Permalink
stream/stream_lavf: user-agent option is deprecated
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wiiaboo authored and wm4 committed Sep 18, 2016
1 parent cb604d5 commit 554c3a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stream/stream_lavf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 554c3a1

Please sign in to comment.