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
1c07ad88
Commit
1c07ad88
authored
Aug 22, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix RTSP Transport mode handling
parent
07e26cc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+8
-4
No files found.
modules/stream_out/rtp.c
View file @
1c07ad88
...
...
@@ -1856,7 +1856,8 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args,
else
if
(
strncmp
(
opt
,
"mode="
,
5
)
==
0
)
{
if
(
strncasecmp
(
opt
+
5
,
"
\"
PLAY
\"
"
,
6
)
)
if
(
strncasecmp
(
opt
+
5
,
"play"
,
4
)
&&
strncasecmp
(
opt
+
5
,
"
\"
PLAY
\"
"
,
6
)
)
{
/* Not playing?! */
b_unsupp
=
VLC_TRUE
;
...
...
@@ -1894,7 +1895,8 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args,
answer
->
i_status
=
200
;
httpd_MsgAdd
(
answer
,
"Transport"
,
"RTP/AVP/UDP;destination=%s;port=%d-%d;ttl=%d"
,
"RTP/AVP/UDP;destination=%s;port=%d-%d;"
"ttl=%d;mode=play"
,
id
->
psz_destination
,
id
->
i_port
,
id
->
i_port
+
1
,
(
p_sys
->
i_ttl
>
0
)
?
p_sys
->
i_ttl
:
1
);
}
...
...
@@ -1967,14 +1969,16 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args,
* control connection server address */
httpd_MsgAdd
(
answer
,
"Transport"
,
"RTP/AVP/UDP;unicast;source=%s;"
"client_port=%u-%u;server_port=%u-%u"
,
"client_port=%u-%u;server_port=%u-%u;"
"mode=play"
,
src
,
loport
,
hiport
,
sport
,
sport
+
1
);
}
else
{
httpd_MsgAdd
(
answer
,
"Transport"
,
"RTP/AVP/UDP;unicast;"
"client_port=%u-%u;server_port=%u-%u"
,
"client_port=%u-%u;server_port=%u-%u;"
"mode=play"
,
loport
,
hiport
,
sport
,
sport
+
1
);
}
...
...
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