summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmpdemux/network.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/libmpdemux/network.c b/libmpdemux/network.c
index 90e050ebba..d0cd0b2c82 100644
--- a/libmpdemux/network.c
+++ b/libmpdemux/network.c
@@ -79,6 +79,9 @@ static struct {
};
+/*
+ * An autodetection based on the extension is not a good idea.
+ *
static struct {
char *extension;
int demuxer_type;
@@ -103,6 +106,7 @@ static struct {
{ "pls", DEMUXER_TYPE_PLAYLIST },
{ "m3u", DEMUXER_TYPE_PLAYLIST }
};
+*/
streaming_ctrl_t *
streaming_ctrl_new( ) {
@@ -446,7 +450,10 @@ autodetectProtocol(streaming_ctrl_t *streaming_ctrl, int *fd_out, int *file_form
*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 @@ extension=NULL;
}
}
}
-
+*/
+
// Checking for RTSP
if( !strcasecmp(url->protocol, "rtsp") ) {
#ifdef STREAMING_LIVE_DOT_COM