From b0f7a26f1a6dc061db0a60908842371e7a010db2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 22 Sep 2013 02:40:29 +0200 Subject: network: fix rtsp playback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- stream/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream') diff --git a/stream/stream.c b/stream/stream.c index eaf8e4dc51..186fc7c79d 100644 --- a/stream/stream.c +++ b/stream/stream.c @@ -86,7 +86,7 @@ static const stream_info_t *const stream_list[] = { #ifdef CONFIG_CDDA &stream_info_cdda, #endif - &stream_info_ffmpeg, // use for rstp:// before http fallback + &stream_info_ffmpeg, &stream_info_avdevice, #ifdef CONFIG_DVBIN &stream_info_dvb, -- cgit v1.2.3