Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
38d2de2c
Commit
38d2de2c
authored
Dec 17, 2010
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtsp: small simplification
parent
48b9ba2f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
17 deletions
+10
-17
modules/stream_out/rtsp.c
modules/stream_out/rtsp.c
+10
-17
No files found.
modules/stream_out/rtsp.c
View file @
38d2de2c
...
@@ -905,29 +905,22 @@ static int RtspHandler( rtsp_stream_t *rtsp, rtsp_stream_id_t *id,
...
@@ -905,29 +905,22 @@ static int RtspHandler( rtsp_stream_t *rtsp, rtsp_stream_id_t *id,
httpd_ServerIP
(
cl
,
ip
);
httpd_ServerIP
(
cl
,
ip
);
/* Specify source IP only if it is different from the
* RTSP control connection server address */
if
(
strcmp
(
src
,
ip
)
)
if
(
strcmp
(
src
,
ip
)
)
{
{
/* Specify source IP if it is different from the RTSP
* control connection server address */
char
*
ptr
=
strchr
(
src
,
'%'
);
char
*
ptr
=
strchr
(
src
,
'%'
);
if
(
ptr
!=
NULL
)
*
ptr
=
'\0'
;
/* remove scope ID */
if
(
ptr
!=
NULL
)
*
ptr
=
'\0'
;
/* remove scope ID */
httpd_MsgAdd
(
answer
,
"Transport"
,
"RTP/AVP/UDP;unicast;source=%s;"
"client_port=%u-%u;server_port=%u-%u;"
"ssrc=%08X;mode=play"
,
src
,
loport
,
loport
+
1
,
sport
,
sport
+
1
,
ssrc
);
}
}
else
else
{
src
[
0
]
=
'\0'
;
httpd_MsgAdd
(
answer
,
"Transport"
,
httpd_MsgAdd
(
answer
,
"Transport"
,
"RTP/AVP/UDP;unicast
;"
"RTP/AVP/UDP;unicast%s%s
;"
"client_port=%u-%u;server_port=%u-%u;"
"client_port=%u-%u;server_port=%u-%u;"
"ssrc=%08X;mode=play"
,
"ssrc=%08X;mode=play"
,
loport
,
loport
+
1
,
sport
,
sport
+
1
,
src
[
0
]
?
";source="
:
""
,
src
,
ssrc
);
loport
,
loport
+
1
,
sport
,
sport
+
1
,
ssrc
);
}
answer
->
i_status
=
200
;
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