summaryrefslogtreecommitdiffstats
path: root/stream/stream.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-14 21:01:30 +0200
committerwm4 <wm4@nowhere>2014-10-14 21:01:30 +0200
commit9241e1bf106f7ae5a6350fdbe602dda9aa390008 (patch)
treeea536adfc817df381d72b01d6b40eb9b829b8e20 /stream/stream.h
parentffd3ae1fad2a63345a682635e8f2082e1d7475b7 (diff)
downloadmpv-9241e1bf106f7ae5a6350fdbe602dda9aa390008.tar.bz2
mpv-9241e1bf106f7ae5a6350fdbe602dda9aa390008.tar.xz
demux_lavf: set stream network options if applicable
Normally, we pass libavformat demuxers a wrapped mpv stream. But in some cases, such as HLS and RTSP, we let libavformat open the stream itself. In these cases, set typical network properties like useragent according to the mpv options. (We still don't set it for the cases where libavformat opens other streams on its own, e.g. when opening the companion .sub file for .idx files - not sure if we maybe should always set these options.)
Diffstat (limited to 'stream/stream.h')
-rw-r--r--stream/stream.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/stream/stream.h b/stream/stream.h
index 28f9936fce..56c431ed46 100644
--- a/stream/stream.h
+++ b/stream/stream.h
@@ -268,6 +268,13 @@ void mp_cancel_reset(struct mp_cancel *c);
char *mp_file_url_to_filename(void *talloc_ctx, bstr url);
char *mp_file_get_path(void *talloc_ctx, bstr url);
+// stream_lavf.c
+struct AVDictionary;
+void mp_setup_av_network_options(struct AVDictionary **dict,
+ struct mpv_global *global,
+ struct mp_log *log,
+ struct MPOpts *opts);
+
void stream_print_proto_list(struct mp_log *log);
#endif /* MPLAYER_STREAM_H */