[MPlayer-cvslog] CVS: main/libmpdemux open.c, 1.102, 1.103 stream_file.c, 1.6, 1.7

Nico Sabbi CVS syncmail at mplayerhq.hu
Sat May 14 10:15:40 CEST 2005


CVS change done by Nico Sabbi CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv3531

Modified Files:
	open.c stream_file.c 
Log Message:
make file:// prefix work

Index: open.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/open.c,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -r1.102 -r1.103
--- open.c	27 Feb 2005 04:25:12 -0000	1.102
+++ open.c	14 May 2005 08:15:37 -0000	1.103
@@ -497,6 +497,7 @@
     strncmp("vcd://", filename, 6) && strncmp("dvb://", filename, 6) &&
     strncmp("cdda://", filename, 7) && strncmp("cddb://", filename, 7) &&
     strncmp("mpst://", filename, 7) && strncmp("tivo://", filename, 7) &&
+    strncmp("file://", filename, 7) && 
     strstr(filename, "://")) {
      url = url_new(filename);
     }

Index: stream_file.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/stream_file.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- stream_file.c	31 Jul 2004 11:08:47 -0000	1.6
+++ stream_file.c	14 May 2005 08:15:37 -0000	1.7
@@ -14,14 +14,16 @@
 
 static struct stream_priv_s {
   char* filename;
+  char* dummy_hostname;
 } stream_priv_dflts = {
-  NULL
+  NULL, NULL
 };
 
 #define ST_OFF(f) M_ST_OFF(struct stream_priv_s,f)
 /// URL definition
 static m_option_t stream_opts_fields[] = {
   {"filename", ST_OFF(filename), CONF_TYPE_STRING, 0, 0 ,0, NULL},
+  {"hostname", ST_OFF(dummy_hostname), CONF_TYPE_STRING, 0, 0, 0, NULL },
   { NULL, NULL, 0, 0, 0, 0,  NULL }
 };
 static struct m_struct_st stream_opts = {




More information about the MPlayer-cvslog mailing list