changeset 8890:c9cbfb9d720c

Finally commented out the code for autodetection based on the extension.
author bertrand
date Sat, 11 Jan 2003 14:02:23 +0000
parents 18427eee9205
children 5b73c925436e
files libmpdemux/network.c
diffstat 1 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/network.c	Sat Jan 11 12:32:24 2003 +0000
+++ b/libmpdemux/network.c	Sat Jan 11 14:02:23 2003 +0000
@@ -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