Mercurial > mplayer.hg
changeset 28885:e375263bd10b
Ensure the string we're trying to compare is actually not NULL.
author | ben |
---|---|
date | Mon, 09 Mar 2009 20:31:03 +0000 |
parents | 304ee75ca7ae |
children | d5d27dfe76a1 |
files | stream/librtsp/rtsp_rtp.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);