summaryrefslogtreecommitdiffstats
path: root/stream/stream.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2012-09-07 19:39:46 +0300
committerwm4 <wm4@nowhere>2012-10-28 17:35:56 +0100
commit6903319c6628ebd794c0f817e533276e60a194b3 (patch)
tree625083defdcbf72257e29c5ceac7948cd28cb31a /stream/stream.c
parent60cbc9461b86b13c68cc9537bc9a124ddc07a399 (diff)
downloadmpv-6903319c6628ebd794c0f817e533276e60a194b3.tar.bz2
mpv-6903319c6628ebd794c0f817e533276e60a194b3.tar.xz
stream_ffmpeg: handle rtsp:// URLs by default, add lavf://
Make stream_ffmpeg handle rtsp:// URLs by default, without requiring ffmpeg://rtsp://. Previously (after removal of other rtsp implementations) rtsp:// fell back to using HTTP, which was unlikely to work. Also add lavf:// as an alternative to ffmpeg:// to force the stream implementation. Since libavformat can come from Libav rather than FFmpeg, using the ffmpeg name in the prefix is misleading.
Diffstat (limited to 'stream/stream.c')
-rw-r--r--stream/stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream.c b/stream/stream.c
index 837378fcae..9b64deb4a9 100644
--- a/stream/stream.c
+++ b/stream/stream.c
@@ -93,6 +93,7 @@ static const stream_info_t* const auto_open_streams[] = {
#ifdef CONFIG_CDDA
&stream_info_cdda,
#endif
+ &stream_info_ffmpeg, // use for rstp:// before http fallback
#ifdef CONFIG_NETWORKING
&stream_info_netstream,
&stream_info_http1,
@@ -128,7 +129,6 @@ static const stream_info_t* const auto_open_streams[] = {
#ifdef CONFIG_LIBBLURAY
&stream_info_bluray,
#endif
- &stream_info_ffmpeg,
&stream_info_null,
&stream_info_mf,