avformat/hls: propagate icy to child AVIOContexts
authorMarvin Scholz <epirat07@gmail.com>
Tue, 17 Dec 2019 00:17:42 +0000 (01:17 +0100)
committerJames Almer <jamrial@gmail.com>
Fri, 27 Dec 2019 17:57:25 +0000 (14:57 -0300)
When the user decides they do not want to to send the Icy-MetaData
header, this should be respected for all requests, not just the first
one.

Fix #5578

Reviewed-by: Liu Steven <lq@chinaffmpeg.org>
Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/hls.c

index f60396f..538af0d 100644 (file)
@@ -1663,7 +1663,7 @@ static int save_avio_options(AVFormatContext *s)
 {
     HLSContext *c = s->priv_data;
     static const char * const opts[] = {
-        "headers", "http_proxy", "user_agent", "cookies", "referer", "rw_timeout", NULL };
+        "headers", "http_proxy", "user_agent", "cookies", "referer", "rw_timeout", "icy", NULL };
     const char * const * opt = opts;
     uint8_t *buf;
     int ret = 0;