mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-29 15:11:09 +08: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user