1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-16 04:07:08 +00:00

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
This commit is contained in:
bertrand 2003-01-11 14:02:23 +00:00
parent aac74a7785
commit 8229e28f90

View File

@ -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