[Mplayer-cvslog] CVS: main/libmpdemux network.c,1.94,1.95

Roberto Togni CVS syncmail at mplayerhq.hu
Mon Apr 19 21:55:39 CEST 2004


CVS change done by Roberto Togni CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv3206

Modified Files:
	network.c 
Log Message:
10l: don't run strcmp if arg is NULL
Pathc by adland


Index: network.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/network.c,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -r1.94 -r1.95
--- network.c	17 Apr 2004 16:46:40 -0000	1.94
+++ network.c	19 Apr 2004 19:55:37 -0000	1.95
@@ -769,7 +769,7 @@
 						// 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;




More information about the MPlayer-cvslog mailing list