[Mplayer-cvslog] CVS: main/libmpdemux video.c,1.34,1.35 demux_rtp.cpp,1.11,1.12
Bertrand Baudet
bertrand at mplayerhq.hu
Tue Feb 18 23:34:10 CET 2003
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv11859
Modified Files:
video.c demux_rtp.cpp
Log Message:
Repairing breakage to RTP streaming. Patch by Ross Finlayson <finlayson at live.com>
Index: video.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/video.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- video.c 2 Feb 2003 14:02:32 -0000 1.34
+++ video.c 18 Feb 2003 22:33:44 -0000 1.35
@@ -25,6 +25,10 @@
/* biCompression constant */
#define BI_RGB 0L
+#ifdef STREAMING_LIVE_DOT_COM
+#include "demux_rtp.h"
+#endif
+
static mp_mpeg_header_t picture;
static int telecine=0;
@@ -82,13 +86,6 @@
#endif
break;
}
-#ifdef STREAMING_LIVE_DOT_COM
- case DEMUXER_TYPE_RTP:
- // If the RTP stream is a MPEG stream, then we use this code to check
- // for MPEG headers:
- if (!demux_is_mpeg_rtp_stream(d_video->demuxer)) break;
- // otherwise fall through to...
-#endif
case DEMUXER_TYPE_MPEG4_ES: {
videobuf_len=0; videobuf_code_len=0;
mp_msg(MSGT_DECVIDEO,MSGL_V,"Searching for Video Object Start code... ");fflush(stdout);
@@ -129,6 +126,13 @@
sh_video->format=0x10000004;
break;
}
+#ifdef STREAMING_LIVE_DOT_COM
+ case DEMUXER_TYPE_RTP:
+ // If the RTP stream is a MPEG stream, then we use this code to check
+ // for MPEG headers:
+ if (!demux_is_mpeg_rtp_stream(d_video->demuxer)) break;
+ // otherwise fall through to...
+#endif
case DEMUXER_TYPE_PVA:
case DEMUXER_TYPE_MPEG_ES:
case DEMUXER_TYPE_MPEG_PS: {
Index: demux_rtp.cpp
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_rtp.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- demux_rtp.cpp 9 Feb 2003 17:06:38 -0000 1.11
+++ demux_rtp.cpp 18 Feb 2003 22:33:44 -0000 1.12
@@ -112,6 +112,9 @@
RTSPClient* rtspClient = NULL;
unsigned flags = 0;
+ if (demuxer == NULL || demuxer->stream == NULL) break; // shouldn't happen
+ demuxer->stream->eof = 0; // just in case
+
// Look at the stream's 'priv' field to see if we were initiated
// via a SDP description:
char* sdpDescription = (char*)(demuxer->stream->priv);
More information about the MPlayer-cvslog
mailing list