# HG changeset patch # User alex # Date 1088246415 0 # Node ID 6a23658331f8b210c6a37056cbf2acee484d1fcb # Parent 9cdff452833bb38f11aa04c89fad7e6dc5dcd542 avoid double slashes, patch by Yoshinori Sato diff -r 9cdff452833b -r 6a23658331f8 libmpdemux/network.c --- 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);