]> git.sesse.net Git - vlc/commitdiff
Fix segmentation fault
authorRémi Denis-Courmont <rem@videolan.org>
Sat, 1 Sep 2007 20:04:56 +0000 (20:04 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sat, 1 Sep 2007 20:04:56 +0000 (20:04 +0000)
modules/stream_out/rtsp.c

index 8044aa94a8aa1288ae3c4615e2b56071aa3bf734..534e5f8ffabfff78fbef06313c84b7988a16cbd4 100644 (file)
@@ -328,11 +328,11 @@ static int RtspHandler( rtsp_stream_t *rtsp, rtsp_stream_id_t *id,
                         httpd_message_t *answer,
                         const httpd_message_t *query )
 {
-    sout_stream_t *p_stream = id->stream->owner;
+    sout_stream_t *p_stream = rtsp->owner;
     char psz_sesbuf[17];
     const char *psz_session = NULL, *psz;
 
-    if( answer == NULL || query == NULL )
+    if( answer == NULL || query == NULL || cl == NULL )
         return VLC_SUCCESS;
 
     /* */