From f0a3086fb75b76cdd0e163247d738ca10afa8d34 Mon Sep 17 00:00:00 2001 From: elupus Date: Tue, 30 Mar 2010 21:13:01 +0000 Subject: fixed: when playing mpegts over rtp/rtsp/sdp, lavf must still read PAT/SDT to get available streams git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@28932 568bbfeb-2a22-0410-94d2-cc84cf5bfa90 --- xbmc/cores/dvdplayer/Codecs/ffmpeg/libavformat/mpegts.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xbmc/cores/dvdplayer/Codecs/ffmpeg/libavformat/mpegts.c b/xbmc/cores/dvdplayer/Codecs/ffmpeg/libavformat/mpegts.c index 1b53572289..8d792aae45 100644 --- a/xbmc/cores/dvdplayer/Codecs/ffmpeg/libavformat/mpegts.c +++ b/xbmc/cores/dvdplayer/Codecs/ffmpeg/libavformat/mpegts.c @@ -1757,6 +1757,9 @@ MpegTSContext *ff_mpegts_parse_open(AVFormatContext *s) ts->raw_packet_size = TS_PACKET_SIZE; ts->stream = s; ts->auto_guess = 1; + mpegts_open_section_filter(ts, SDT_PID, sdt_cb, ts, 1); + mpegts_open_section_filter(ts, PAT_PID, pat_cb, ts, 1); + return ts; } -- cgit v1.2.3