[Mplayer-cvslog] CVS: main/libmpdemux network.c,1.102,1.103

Alex Beregszaszi syncmail at mplayerhq.hu
Sat Jun 26 12:40:18 CEST 2004


CVS change done by Alex Beregszaszi

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

Modified Files:
	network.c 
Log Message:
avoid double slashes, patch by Yoshinori Sato

Index: network.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/network.c,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -r1.102 -r1.103
--- network.c	25 Jun 2004 15:14:27 -0000	1.102
+++ network.c	26 Jun 2004 10:40:15 -0000	1.103
@@ -1044,6 +1044,8 @@
 		if(fd<0) return -1;
 		
 		mrl = malloc(sizeof(char)*(strlen(stream->streaming_ctrl->url->hostname)+strlen(stream->streaming_ctrl->url->file)+16));
+		if (stream->streaming_ctrl->url->file[0] == '/')
+		    stream->streaming_ctrl->url->file++;
 		sprintf(mrl,"rtsp://%s:%i/%s",stream->streaming_ctrl->url->hostname,port,stream->streaming_ctrl->url->file);
 		rtsp = rtsp_session_start(fd,&mrl, stream->streaming_ctrl->url->file,
 			stream->streaming_ctrl->url->hostname, port, &redirected);




More information about the MPlayer-cvslog mailing list