1
mirror of https://github.com/mpv-player/mpv synced 2024-10-06 14:54:02 +02:00

Fixed a bug that was accidentally introduced by the addition of MPEG Transport

Stream support.  We now handle errors such as 'stream not found' correctly once
again.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12044 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rsf 2004-03-19 10:15:41 +00:00
parent 1fac9f9861
commit 7611ee601e

View File

@ -120,6 +120,7 @@ static char* openURL_sip(SIPClient* client, char const* url) {
int rtspStreamOverTCP = 0;
extern "C" demuxer_t* demux_open_rtp(demuxer_t* demuxer) {
Boolean success = False;
do {
TaskScheduler* scheduler = BasicTaskScheduler::createNew();
if (scheduler == NULL) break;
@ -253,7 +254,9 @@ extern "C" demuxer_t* demux_open_rtp(demuxer_t* demuxer) {
}
rtpState->flags |= flags;
}
success = True;
} while (0);
if (!success) return NULL; // an error occurred
// Hack: If audio and video are demuxed together on a single RTP stream,
// then create a new "demuxer_t" structure to allow the higher-level