mirror of
https://github.com/mpv-player/mpv
synced 2024-12-11 17:37:23 +00:00
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:
parent
df14981c08
commit
6b3b406407
@ -769,7 +769,7 @@ extension=NULL;
|
|||||||
// If content-type == video/nsv we most likely have a winamp video stream
|
// 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
|
// otherwise it should be mp3. if there are more types consider adding mime type
|
||||||
// handling like later
|
// 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;
|
*file_format = DEMUXER_TYPE_NSV;
|
||||||
else
|
else
|
||||||
*file_format = DEMUXER_TYPE_AUDIO;
|
*file_format = DEMUXER_TYPE_AUDIO;
|
||||||
|
Loading…
Reference in New Issue
Block a user