avoid double slashes, patch by Yoshinori Sato

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12680 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2004-06-26 10:40:15 +00:00
parent 08891559e1
commit 64963c3541
1 changed files with 2 additions and 0 deletions

View File

@ -1044,6 +1044,8 @@ realrtsp_streaming_start( stream_t *stream ) {
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);