# HG changeset patch # User bertrand # Date 1042293743 0 # Node ID c9cbfb9d720c44145b3ff069d3cb582a878bcad7 # Parent 18427eee920570833cf5ecd39be23277ddce4aeb Finally commented out the code for autodetection based on the extension. diff -r 18427eee9205 -r c9cbfb9d720c libmpdemux/network.c --- 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