Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
693b28be
Commit
693b28be
authored
Dec 12, 2010
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtsp: handle SETUP requests on already set up tracks
parent
66f743de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
modules/stream_out/rtsp.c
modules/stream_out/rtsp.c
+20
-2
No files found.
modules/stream_out/rtsp.c
View file @
693b28be
...
...
@@ -823,8 +823,6 @@ static int RtspHandler( rtsp_stream_t *rtsp, rtsp_stream_id_t *id,
}
else
{
/* FIXME: we probably need to remove an access out,
* if there is already one for the same ID */
ses
=
RtspClientGet
(
rtsp
,
psz_session
);
if
(
ses
==
NULL
)
{
...
...
@@ -836,6 +834,26 @@ static int RtspHandler( rtsp_stream_t *rtsp, rtsp_stream_id_t *id,
}
RtspClientAlive
(
ses
);
/* Bail if the track is already set up: we don't
* support changing the transport parameters on the
* fly */
bool
setup
=
false
;
for
(
int
i
=
0
;
i
<
ses
->
trackc
;
i
++
)
{
if
(
ses
->
trackv
[
i
].
id
==
id
)
{
setup
=
true
;
break
;
}
}
if
(
setup
)
{
vlc_mutex_unlock
(
&
rtsp
->
lock
);
answer
->
i_status
=
455
;
net_Close
(
fd
);
break
;
}
INSERT_ELEM
(
ses
->
trackv
,
ses
->
trackc
,
ses
->
trackc
,
track
);
vlc_mutex_unlock
(
&
rtsp
->
lock
);
...
...
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