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
79621a91
Commit
79621a91
authored
Mar 14, 2011
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtsp: fix for loop
This fixes a crash with VoD when all tracks were not set up
parent
75d96e7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/stream_out/rtsp.c
modules/stream_out/rtsp.c
+2
-2
No files found.
modules/stream_out/rtsp.c
View file @
79621a91
...
@@ -442,7 +442,7 @@ int RtspTrackAttach( rtsp_stream_t *rtsp, const char *name,
...
@@ -442,7 +442,7 @@ int RtspTrackAttach( rtsp_stream_t *rtsp, const char *name,
goto
out
;
goto
out
;
rtsp_strack_t
*
tr
=
NULL
;
rtsp_strack_t
*
tr
=
NULL
;
for
(
int
i
=
0
;
session
->
trackc
;
i
++
)
for
(
int
i
=
0
;
i
<
session
->
trackc
;
i
++
)
{
{
if
(
session
->
trackv
[
i
].
id
==
id
)
if
(
session
->
trackv
[
i
].
id
==
id
)
{
{
...
@@ -500,7 +500,7 @@ void RtspTrackDetach( rtsp_stream_t *rtsp, const char *name,
...
@@ -500,7 +500,7 @@ void RtspTrackDetach( rtsp_stream_t *rtsp, const char *name,
if
(
session
==
NULL
)
if
(
session
==
NULL
)
goto
out
;
goto
out
;
for
(
int
i
=
0
;
session
->
trackc
;
i
++
)
for
(
int
i
=
0
;
i
<
session
->
trackc
;
i
++
)
{
{
rtsp_strack_t
*
tr
=
session
->
trackv
+
i
;
rtsp_strack_t
*
tr
=
session
->
trackv
+
i
;
if
(
tr
->
sout_id
==
sout_id
)
if
(
tr
->
sout_id
==
sout_id
)
...
...
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