diff options
author | bertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-02-18 22:33:44 +0000 |
---|---|---|
committer | bertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-02-18 22:33:44 +0000 |
commit | 12322d251789f25475ac07e32fe3a0ed996660bd (patch) | |
tree | 540d42d8f16a210e8e32fbf5479698ea4532c614 /libmpdemux/demux_rtp.cpp | |
parent | 14c4084899008c9d2a9dae341fde10d5db9f3a53 (diff) | |
download | mpv-12322d251789f25475ac07e32fe3a0ed996660bd.tar.bz2 mpv-12322d251789f25475ac07e32fe3a0ed996660bd.tar.xz |
Repairing breakage to RTP streaming. Patch by Ross Finlayson <finlayson@live.com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9458 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/demux_rtp.cpp')
-rw-r--r-- | libmpdemux/demux_rtp.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libmpdemux/demux_rtp.cpp b/libmpdemux/demux_rtp.cpp index 75cf85e78e..f6165f4b19 100644 --- a/libmpdemux/demux_rtp.cpp +++ b/libmpdemux/demux_rtp.cpp @@ -112,6 +112,9 @@ extern "C" void demux_open_rtp(demuxer_t* demuxer) { 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); |