Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
467d4c93
Commit
467d4c93
authored
Sep 28, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RTP: pass path rather than URL to RtspSetup()
parent
8d963a22
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+1
-1
modules/stream_out/rtp.h
modules/stream_out/rtp.h
+1
-1
modules/stream_out/rtsp.c
modules/stream_out/rtsp.c
+3
-3
modules/stream_out/vod.c
modules/stream_out/vod.c
+1
-1
No files found.
modules/stream_out/rtp.c
View file @
467d4c93
...
...
@@ -717,7 +717,7 @@ static void SDPHandleUrl( sout_stream_t *p_stream, const char *psz_url )
goto
out
;
}
p_sys
->
rtsp
=
RtspSetup
(
VLC_OBJECT
(
p_stream
),
NULL
,
&
url
);
p_sys
->
rtsp
=
RtspSetup
(
VLC_OBJECT
(
p_stream
),
NULL
,
url
.
psz_path
);
if
(
p_sys
->
rtsp
==
NULL
)
msg_Err
(
p_stream
,
"cannot export SDP as RTSP"
);
}
...
...
modules/stream_out/rtp.h
View file @
467d4c93
...
...
@@ -26,7 +26,7 @@ typedef struct rtsp_stream_t rtsp_stream_t;
typedef
struct
rtsp_stream_id_t
rtsp_stream_id_t
;
rtsp_stream_t
*
RtspSetup
(
vlc_object_t
*
owner
,
vod_media_t
*
media
,
const
vlc_url_t
*
url
);
const
char
*
path
);
void
RtspUnsetup
(
rtsp_stream_t
*
rtsp
);
rtsp_stream_id_t
*
RtspAddId
(
rtsp_stream_t
*
rtsp
,
sout_stream_id_t
*
sid
,
...
...
modules/stream_out/rtsp.c
View file @
467d4c93
...
...
@@ -84,11 +84,11 @@ static void RtspClientDel( rtsp_stream_t *rtsp, rtsp_session_t *session );
static
void
RtspTimeOut
(
void
*
data
);
rtsp_stream_t
*
RtspSetup
(
vlc_object_t
*
owner
,
vod_media_t
*
media
,
const
vlc_url_t
*
url
)
const
char
*
path
)
{
rtsp_stream_t
*
rtsp
=
malloc
(
sizeof
(
*
rtsp
)
);
if
(
rtsp
==
NULL
||
(
url
->
i_port
>
99999
)
)
if
(
rtsp
==
NULL
)
{
free
(
rtsp
);
return
NULL
;
...
...
@@ -111,7 +111,7 @@ rtsp_stream_t *RtspSetup( vlc_object_t *owner, vod_media_t *media,
goto
error
;
}
rtsp
->
psz_path
=
strdup
(
(
url
->
psz_path
!=
NULL
)
?
url
->
psz_
path
:
"/"
);
rtsp
->
psz_path
=
strdup
(
(
path
!=
NULL
)
?
path
:
"/"
);
if
(
rtsp
->
psz_path
==
NULL
)
goto
error
;
...
...
modules/stream_out/vod.c
View file @
467d4c93
...
...
@@ -272,7 +272,7 @@ static void MediaSetup( vod_t *p_vod, vod_media_t *p_media,
vlc_UrlParse
(
&
url
,
psz_url
,
0
);
free
(
psz_url
);
p_media
->
rtsp
=
RtspSetup
(
VLC_OBJECT
(
p_vod
),
p_media
,
&
url
);
p_media
->
rtsp
=
RtspSetup
(
VLC_OBJECT
(
p_vod
),
p_media
,
url
.
psz_path
);
vlc_UrlClean
(
&
url
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment