# HG changeset patch # User ben # Date 1236630663 0 # Node ID e375263bd10b9efb61cb39005c1b23a106a1f0d9 # Parent 304ee75ca7aeadf747ae4c55bd6ac875fa668e48 Ensure the string we're trying to compare is actually not NULL. diff -r 304ee75ca7ae -r e375263bd10b stream/librtsp/rtsp_rtp.c --- a/stream/librtsp/rtsp_rtp.c Mon Mar 09 20:30:24 2009 +0000 +++ b/stream/librtsp/rtsp_rtp.c Mon Mar 09 20:31:03 2009 +0000 @@ -507,7 +507,8 @@ } /* 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);