comparison stream/librtsp/rtsp_rtp.c @ 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 5b749a93fc89
children 0f1b5b68af32
comparison
equal deleted inserted replaced
28884:304ee75ca7ae 28885:e375263bd10b
505 fsdp_description_delete (dsc); 505 fsdp_description_delete (dsc);
506 return NULL; 506 return NULL;
507 } 507 }
508 508
509 /* only MPEG-TS is supported at the moment */ 509 /* only MPEG-TS is supported at the moment */
510 if (!strstr (fsdp_get_media_format (med_dsc, 0), 510 if (!fsdp_get_media_format (med_dsc, 0) ||
511 !strstr (fsdp_get_media_format (med_dsc, 0),
511 RTSP_MEDIA_CONTAINER_MPEG_TS)) 512 RTSP_MEDIA_CONTAINER_MPEG_TS))
512 { 513 {
513 fsdp_description_delete (dsc); 514 fsdp_description_delete (dsc);
514 return NULL; 515 return NULL;
515 } 516 }