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

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28920 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ben 2009-03-09 20:31:03 +00:00
parent 571c0fb8a9
commit 540847db7b
1 changed files with 2 additions and 1 deletions

View File

@ -507,7 +507,8 @@ rtp_setup_and_play (rtsp_t *rtsp_session)
} }
/* only MPEG-TS is supported at the moment */ /* 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)) RTSP_MEDIA_CONTAINER_MPEG_TS))
{ {
fsdp_description_delete (dsc); fsdp_description_delete (dsc);