Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
59a40313
Commit
59a40313
authored
Sep 29, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Specify SSRC in SETUP response
parent
1acb8064
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
8 deletions
+12
-8
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+2
-1
modules/stream_out/rtp.h
modules/stream_out/rtp.h
+1
-1
modules/stream_out/rtsp.c
modules/stream_out/rtsp.c
+9
-6
No files found.
modules/stream_out/rtp.c
View file @
59a40313
...
...
@@ -601,7 +601,7 @@ static void SDPHandleUrl( sout_stream_t *p_stream, char *psz_url )
if
(
p_sys
->
p_mux
!=
NULL
)
{
sout_stream_id_t
*
id
=
p_sys
->
es
[
0
];
id
->
rtsp_id
=
RtspAddId
(
p_sys
->
rtsp
,
id
,
0
,
id
->
rtsp_id
=
RtspAddId
(
p_sys
->
rtsp
,
id
,
0
,
GetDWBE
(
id
->
ssrc
),
p_sys
->
psz_destination
,
p_sys
->
i_ttl
,
id
->
i_port
,
id
->
i_port
+
1
);
}
...
...
@@ -1143,6 +1143,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
if
(
p_sys
->
rtsp
!=
NULL
)
id
->
rtsp_id
=
RtspAddId
(
p_sys
->
rtsp
,
id
,
p_sys
->
i_es
,
GetDWBE
(
id
->
ssrc
),
p_sys
->
psz_destination
,
p_sys
->
i_ttl
,
id
->
i_port
,
id
->
i_port
+
1
);
...
...
modules/stream_out/rtp.h
View file @
59a40313
...
...
@@ -29,7 +29,7 @@ rtsp_stream_t *RtspSetup( sout_stream_t *p_stream, const vlc_url_t *url );
void
RtspUnsetup
(
rtsp_stream_t
*
rtsp
);
rtsp_stream_id_t
*
RtspAddId
(
rtsp_stream_t
*
rtsp
,
sout_stream_id_t
*
sid
,
unsigned
i
,
unsigned
i
,
uint32_t
ssrc
,
const
char
*
dst
,
int
ttl
,
unsigned
loport
,
unsigned
hiport
);
void
RtspDelId
(
rtsp_stream_t
*
rtsp
,
rtsp_stream_id_t
*
);
...
...
modules/stream_out/rtsp.c
View file @
59a40313
...
...
@@ -144,7 +144,8 @@ struct rtsp_stream_id_t
httpd_url_t
*
url
;
const
char
*
dst
;
int
ttl
;
unsigned
loport
,
hiport
;
uint32_t
ssrc
;
uint16_t
loport
,
hiport
;
};
...
...
@@ -172,7 +173,7 @@ struct rtsp_strack_t
rtsp_stream_id_t
*
RtspAddId
(
rtsp_stream_t
*
rtsp
,
sout_stream_id_t
*
sid
,
unsigned
num
,
unsigned
num
,
uint32_t
ssrc
,
/* Multicast stuff - TODO: cleanup */
const
char
*
dst
,
int
ttl
,
unsigned
loport
,
unsigned
hiport
)
...
...
@@ -186,6 +187,7 @@ rtsp_stream_id_t *RtspAddId( rtsp_stream_t *rtsp, sout_stream_id_t *sid,
id
->
stream
=
rtsp
;
id
->
sout_id
=
sid
;
id
->
ssrc
=
ssrc
;
/* TODO: can we assume that this need not be strdup'd? */
id
->
dst
=
dst
;
if
(
id
->
dst
!=
NULL
)
...
...
@@ -569,17 +571,18 @@ static int RtspHandler( rtsp_stream_t *rtsp, rtsp_stream_id_t *id,
httpd_MsgAdd
(
answer
,
"Transport"
,
"RTP/AVP/UDP;unicast;source=%s;"
"client_port=%u-%u;server_port=%u-%u;"
"mode=play"
,
"
ssrc=%08X;
mode=play"
,
src
,
loport
,
loport
+
1
,
sport
,
sport
+
1
);
sport
+
1
,
id
->
ssrc
);
}
else
{
httpd_MsgAdd
(
answer
,
"Transport"
,
"RTP/AVP/UDP;unicast;"
"client_port=%u-%u;server_port=%u-%u;"
"mode=play"
,
loport
,
loport
+
1
,
sport
,
sport
+
1
);
"ssrc=%08X;mode=play"
,
loport
,
loport
+
1
,
sport
,
sport
+
1
,
id
->
ssrc
);
}
answer
->
i_status
=
200
;
...
...
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