diff libmpdemux/network.c @ 12679:6a23658331f8

avoid double slashes, patch by Yoshinori Sato
author alex
date Sat, 26 Jun 2004 10:40:15 +0000
parents 2ebd553876c8
children befb79b0232e
line wrap: on
line diff
--- a/libmpdemux/network.c	Sat Jun 26 10:38:26 2004 +0000
+++ b/libmpdemux/network.c	Sat Jun 26 10:40:15 2004 +0000
@@ -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);