changeset 13673:2299f20215a4

Fix segfault for unexistant/unreachable rtsp streams
author rtognimp
date Mon, 18 Oct 2004 18:51:35 +0000
parents d80a81d6e2d8
children b7322244e53c
files libmpdemux/demuxer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demuxer.c	Mon Oct 18 18:26:44 2004 +0000
+++ b/libmpdemux/demuxer.c	Mon Oct 18 18:51:35 2004 +0000
@@ -1360,7 +1360,7 @@
 #endif
 #ifdef STREAMING_LIVE_DOT_COM
  case DEMUXER_TYPE_RTP: {
-   demuxer = demux_open_rtp(demuxer);
+   if (!(demuxer = demux_open_rtp(demuxer))) return NULL;
    break;
  }
 #endif