[Mplayer-cvslog] CVS: main/libmpdemux network.c,1.69,1.70

Bertrand Baudet bertrand at mplayerhq.hu
Sat Jan 11 15:02:38 CET 2003


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv13647

Modified Files:
	network.c 
Log Message:
Finally commented out the code for autodetection based on the extension.


Index: network.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/network.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -r1.69 -r1.70
--- network.c	6 Jan 2003 16:43:42 -0000	1.69
+++ network.c	11 Jan 2003 14:02:23 -0000	1.70
@@ -79,6 +79,9 @@
 
 };
 
+/*
+ * An autodetection based on the extension is not a good idea.
+ * 
 static struct {
 	char *extension;
 	int demuxer_type;
@@ -103,6 +106,7 @@
 	{ "pls", DEMUXER_TYPE_PLAYLIST },
 	{ "m3u", DEMUXER_TYPE_PLAYLIST }
 };
+*/
 
 streaming_ctrl_t *
 streaming_ctrl_new( ) {
@@ -446,7 +450,10 @@
 			*file_format = DEMUXER_TYPE_REAL;
 			return 0;
 		}
-
+		
+/* 
+ * An autodetection based on the extension is not a good idea.
+ * 
 		// Get the extension of the file if present
 		if( url->file!=NULL ) {
 			for( i=strlen(url->file) ; i>0 ; i-- ) {
@@ -467,7 +474,8 @@
 				}
 			}
 		}
-
+*/
+		
 		// Checking for RTSP
 		if( !strcasecmp(url->protocol, "rtsp") ) {
 #ifdef STREAMING_LIVE_DOT_COM



More information about the MPlayer-cvslog mailing list