[MPlayer-cvslog] r28920 - trunk/stream/librtsp/rtsp_rtp.c

ben subversion at mplayerhq.hu
Mon Mar 9 21:31:03 CET 2009


Author: ben
Date: Mon Mar  9 21:31:03 2009
New Revision: 28920

Log:
Ensure the string we're trying to compare is actually not NULL.

Modified:
   trunk/stream/librtsp/rtsp_rtp.c

Modified: trunk/stream/librtsp/rtsp_rtp.c
==============================================================================
--- trunk/stream/librtsp/rtsp_rtp.c	Mon Mar  9 21:30:24 2009	(r28919)
+++ trunk/stream/librtsp/rtsp_rtp.c	Mon Mar  9 21:31:03 2009	(r28920)
@@ -507,7 +507,8 @@ rtp_setup_and_play (rtsp_t *rtsp_session
   }
 
   /* only MPEG-TS is supported at the moment */
-  if (!strstr (fsdp_get_media_format (med_dsc, 0),
+  if (!fsdp_get_media_format (med_dsc, 0) ||
+      !strstr (fsdp_get_media_format (med_dsc, 0),
                RTSP_MEDIA_CONTAINER_MPEG_TS))
   {
     fsdp_description_delete (dsc);



More information about the MPlayer-cvslog mailing list