Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
12678:9cdff452833b | 12679:6a23658331f8 |
---|---|
1042 fd = connect2Server( stream->streaming_ctrl->url->hostname, | 1042 fd = connect2Server( stream->streaming_ctrl->url->hostname, |
1043 port = (stream->streaming_ctrl->url->port ? stream->streaming_ctrl->url->port : 554),1 ); | 1043 port = (stream->streaming_ctrl->url->port ? stream->streaming_ctrl->url->port : 554),1 ); |
1044 if(fd<0) return -1; | 1044 if(fd<0) return -1; |
1045 | 1045 |
1046 mrl = malloc(sizeof(char)*(strlen(stream->streaming_ctrl->url->hostname)+strlen(stream->streaming_ctrl->url->file)+16)); | 1046 mrl = malloc(sizeof(char)*(strlen(stream->streaming_ctrl->url->hostname)+strlen(stream->streaming_ctrl->url->file)+16)); |
1047 if (stream->streaming_ctrl->url->file[0] == '/') | |
1048 stream->streaming_ctrl->url->file++; | |
1047 sprintf(mrl,"rtsp://%s:%i/%s",stream->streaming_ctrl->url->hostname,port,stream->streaming_ctrl->url->file); | 1049 sprintf(mrl,"rtsp://%s:%i/%s",stream->streaming_ctrl->url->hostname,port,stream->streaming_ctrl->url->file); |
1048 rtsp = rtsp_session_start(fd,&mrl, stream->streaming_ctrl->url->file, | 1050 rtsp = rtsp_session_start(fd,&mrl, stream->streaming_ctrl->url->file, |
1049 stream->streaming_ctrl->url->hostname, port, &redirected); | 1051 stream->streaming_ctrl->url->hostname, port, &redirected); |
1050 | 1052 |
1051 if ( redirected == 1 ) { | 1053 if ( redirected == 1 ) { |