diff options
author | bertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-11 14:02:23 +0000 |
---|---|---|
committer | bertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-11 14:02:23 +0000 |
commit | 8229e28f908f5dac6a0db363be99ac0581c23023 (patch) | |
tree | a439ea550e3a5313ef7efdc06f21d79ceb224c27 | |
parent | aac74a7785bdc0ed63fa1bd502877d2786874637 (diff) | |
download | mpv-8229e28f908f5dac6a0db363be99ac0581c23023.tar.bz2 mpv-8229e28f908f5dac6a0db363be99ac0581c23023.tar.xz |
Finally commented out the code for autodetection based on the extension.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8891 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpdemux/network.c | 12 |
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 |