[FFmpeg-devel] [PATCH] Consistent use of user_agent in hls.c
    Carl Eugen Hoyos 
    ceffmpeg at gmail.com
       
    Fri Feb 17 13:08:08 EET 2017
    
    
  
2017-02-17 12:00 GMT+01:00 Jan Berkel <jan at berkel.fr>:
> This came up while debugging a problem with mpv:
> https://github.com/mpv-player/mpv/issues/4155
> ---
>  libavformat/hls.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/libavformat/hls.c b/libavformat/hls.c
> index 3ae3c7cc5c..e1163a7927 100644
> --- a/libavformat/hls.c
> +++ b/libavformat/hls.c
> @@ -670,7 +670,7 @@ static int parse_playlist(HLSContext *c, const char *url,
>          av_dict_set(&opts, "seekable", "0", 0);
>
>          // broker prior HTTP options that should be consistent across requests
> -        av_dict_set(&opts, "user-agent", c->user_agent, 0);
> +        av_dict_set(&opts, "user_agent", c->user_agent, 0);
Why is the code in http.c line 1048 not triggered that
should use the "user-agent" in case it was defined?
Carl Eugen
    
    
More information about the ffmpeg-devel
mailing list