summaryrefslogtreecommitdiffstats
path: root/stream/stream_lavf.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-07 18:47:39 +0200
committerwm4 <wm4@nowhere>2013-07-07 19:40:35 +0200
commitfeaa721916303c36dcd676c11ac74ecdec2db006 (patch)
tree745578fb3c91e9c62ffb9596e1843e41cc29b31a /stream/stream_lavf.c
parent2c732a46ba37182692748acd2b72310d21c451f8 (diff)
downloadmpv-feaa721916303c36dcd676c11ac74ecdec2db006.tar.bz2
mpv-feaa721916303c36dcd676c11ac74ecdec2db006.tar.xz
core: make network options available even if old net code is disabled
Preparation for removing the old network code.
Diffstat (limited to 'stream/stream_lavf.c')
-rw-r--r--stream/stream_lavf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/stream/stream_lavf.c b/stream/stream_lavf.c
index a21b46c46d..640c719109 100644
--- a/stream/stream_lavf.c
+++ b/stream/stream_lavf.c
@@ -21,6 +21,7 @@
#include <libavutil/opt.h>
#include "config.h"
+#include "core/options.h"
#include "core/mp_msg.h"
#include "stream.h"
#include "core/m_option.h"
@@ -178,7 +179,6 @@ static int open_f(stream_t *stream, int mode, void *opts, int *file_format)
filename = talloc_asprintf(temp, "mmsh://%.*s", BSTR_P(b_filename));
}
-#ifdef CONFIG_NETWORKING
// HTTP specific options (other protocols ignore them)
if (network_useragent)
av_dict_set(&dict, "user-agent", network_useragent, 0);
@@ -197,7 +197,6 @@ static int open_f(stream_t *stream, int mode, void *opts, int *file_format)
}
if (strlen(cust_headers))
av_dict_set(&dict, "headers", cust_headers, 0);
-#endif
av_dict_set(&dict, "icy", "1", 0);
int err = avio_open2(&avio, filename, flags, NULL, &dict);