summaryrefslogtreecommitdiffstats
path: root/mpvcore/options.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-09-22 02:40:29 +0200
committerwm4 <wm4@nowhere>2013-09-22 02:40:29 +0200
commitb0f7a26f1a6dc061db0a60908842371e7a010db2 (patch)
tree0bdd7490110da5e30edf7151f9949e67bff07e92 /mpvcore/options.h
parentce861c9f33fa17d2c9be64eb9e90b22a64dfd5a4 (diff)
downloadmpv-b0f7a26f1a6dc061db0a60908842371e7a010db2.tar.bz2
mpv-b0f7a26f1a6dc061db0a60908842371e7a010db2.tar.xz
network: fix rtsp playback
By default, libavformat uses UDP for rtsp playback. This doesn't work very well. Apparently the reason is that the buffer sizes libavformat chooses for UDP are way too small, and switching to TCP gets rid of this issue entirely (thanks go to Reimar Döffinger for figuring this out). In theory, you can set buffer sizes as libavformat options, but that doesn't seem to help. Add an option to select the rtsp transport, and make TCP the default. Also remove an outdated comment from stream.c.
Diffstat (limited to 'mpvcore/options.h')
-rw-r--r--mpvcore/options.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mpvcore/options.h b/mpvcore/options.h
index d425d0789b..b1058fca37 100644
--- a/mpvcore/options.h
+++ b/mpvcore/options.h
@@ -98,6 +98,7 @@ typedef struct MPOpts {
int stream_cache_def_size;
float stream_cache_min_percent;
float stream_cache_seek_min_percent;
+ int network_rtsp_transport;
int stream_cache_pause;
int chapterrange[2];
int edition_id;