diff options
author | ben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-03-09 20:31:03 +0000 |
---|---|---|
committer | ben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-03-09 20:31:03 +0000 |
commit | 540847db7b60c782a2bcf68a9c12dac186d89941 (patch) | |
tree | 620f880bd7f4a7fe1b7d81854af76d7245a32f8b /stream/librtsp | |
parent | 571c0fb8a949fe55fb685060f7b5d190f7c42b7f (diff) | |
download | mpv-540847db7b60c782a2bcf68a9c12dac186d89941.tar.bz2 mpv-540847db7b60c782a2bcf68a9c12dac186d89941.tar.xz |
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
Diffstat (limited to 'stream/librtsp')
-rw-r--r-- | stream/librtsp/rtsp_rtp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stream/librtsp/rtsp_rtp.c b/stream/librtsp/rtsp_rtp.c index 0c00e5b454..66c7be4a36 100644 --- a/stream/librtsp/rtsp_rtp.c +++ b/stream/librtsp/rtsp_rtp.c @@ -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); |