[Mplayer-cvslog] CVS: main/libmpdemux open.c,1.26,1.27
Bertrand Baudet
bertrand at mplayer.dev.hu
Wed Dec 19 10:02:56 CET 2001
Update of /cvsroot/mplayer/main/libmpdemux
In directory mplayer:/var/tmp.root/cvs-serv10655
Modified Files:
open.c
Log Message:
Removed unnecessary check after the protocol autodetection.
Now it will try to start streaming even if the autodetection failed.
This will allow to work with web server that doesn't report a
proper mime-type.
Index: open.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/open.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- open.c 1 Dec 2001 23:40:24 -0000 1.26
+++ open.c 19 Dec 2001 09:02:52 -0000 1.27
@@ -373,12 +373,6 @@
url = url_new(filename);
if(url) {
(*file_format)=autodetectProtocol( url, &f );
- if( (*file_format)==DEMUXER_TYPE_UNKNOWN ) {
- mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_UnableOpenURL, filename);
- url_free(url);
- return NULL;
- }
- //if(f<0){ mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_UnableOpenURL, url->url); return NULL; }
mp_msg(MSGT_OPEN,MSGL_INFO,MSGTR_ConnToServer, url->hostname );
stream=new_stream(f,STREAMTYPE_STREAM);
if( streaming_start( stream , url, *file_format )<0){
More information about the MPlayer-cvslog
mailing list