changeset 25490:556413e73e17

Make sure we have an rtsp session
author lu_zero
date Mon, 24 Dec 2007 01:54:30 +0000
parents 52f6429a9ba7
children 0680997b8af0
files libmpdemux/demux_nemesi.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_nemesi.c	Sun Dec 23 21:22:02 2007 +0000
+++ b/libmpdemux/demux_nemesi.c	Mon Dec 24 01:54:30 2007 +0000
@@ -190,6 +190,9 @@
         return demuxer;
     }
 
+    if (!ctl->rtsp_queue)
+        return demuxer;
+
     media = ctl->rtsp_queue->media_queue;
     for (; media; media=media->next) {
         sdp_medium_info * info = media->medium_info;