mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 06:03:45 +01:00
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:
parent
08891559e1
commit
64963c3541
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user