[Mplayer-cvslog] CVS: main/libmpdemux open.c,1.22,1.23

Bertrand Baudet bertrand at mplayer.dev.hu
Tue Nov 20 23:48:51 CET 2001


Update of /cvsroot/mplayer/main/libmpdemux
In directory mplayer:/var/tmp.root/cvs-serv28446

Modified Files:
	open.c 
Log Message:
Changed the order of processing the network opening.


Index: open.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/open.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- open.c	16 Nov 2001 22:26:57 -0000	1.22
+++ open.c	20 Nov 2001 22:48:43 -0000	1.23
@@ -343,12 +343,16 @@
           url_free(url);
           return NULL;
         }
-        f=streaming_start( &url, f, *file_format );
-//printf("streaming_start(%d) returned %d\n",*file_format,f);
-        if(f<0){ mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_UnableOpenURL, url->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);
-//	return NULL;
+	if( streaming_start( stream , url, *file_format )<0){
+          mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_UnableOpenURL, filename);
+          url_free(url);
+	  return NULL;
+	}
+	stream_enable_cache(stream,2048*1024);
+	url_free(url);
 	return stream;
   }
 #endif




More information about the MPlayer-cvslog mailing list