10l: don't run strcmp if arg is NULL

Pathc by adland


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12237 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rtognimp 2004-04-19 19:55:37 +00:00
parent df14981c08
commit 6b3b406407
1 changed files with 1 additions and 1 deletions

View File

@ -769,7 +769,7 @@ extension=NULL;
// If content-type == video/nsv we most likely have a winamp video stream
// otherwise it should be mp3. if there are more types consider adding mime type
// handling like later
if( !strcmp((field_data = http_get_field(http_hdr, "content-type")),"video/nsv"))
if ( (field_data = http_get_field(http_hdr, "content-type")) != NULL && !strcmp(field_data, "video/nsv"))
*file_format = DEMUXER_TYPE_NSV;
else
*file_format = DEMUXER_TYPE_AUDIO;