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
d1e66425
Commit
d1e66425
authored
Mar 25, 2005
by
Steve Lhomme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mkv.cpp: play all loaded segments sequentially and don't crash
parent
0f687944
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
5 deletions
+21
-5
modules/demux/mkv.cpp
modules/demux/mkv.cpp
+21
-5
No files found.
modules/demux/mkv.cpp
View file @
d1e66425
...
@@ -785,11 +785,13 @@ static void Close( vlc_object_t *p_this )
...
@@ -785,11 +785,13 @@ static void Close( vlc_object_t *p_this )
demux_t
*
p_demux
=
(
demux_t
*
)
p_this
;
demux_t
*
p_demux
=
(
demux_t
*
)
p_this
;
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
matroska_stream_t
*
p_stream
=
p_sys
->
Stream
();
matroska_stream_t
*
p_stream
=
p_sys
->
Stream
();
matroska_segment_t
*
p_segment
=
p_stream
->
Segment
();
if
(
p_stream
!=
NULL
)
{
matroska_segment_t
*
p_segment
=
p_stream
->
Segment
();
/* TODO close everything ? */
if
(
p_segment
)
if
(
p_segment
)
delete
p_segment
->
segment
;
delete
p_segment
->
segment
;
}
delete
p_sys
;
delete
p_sys
;
}
}
...
@@ -801,6 +803,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -801,6 +803,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
{
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
matroska_stream_t
*
p_stream
=
p_sys
->
Stream
();
matroska_stream_t
*
p_stream
=
p_sys
->
Stream
();
if
(
p_stream
==
NULL
)
return
VLC_EGENERIC
;
matroska_segment_t
*
p_segment
=
p_stream
->
Segment
();
matroska_segment_t
*
p_segment
=
p_stream
->
Segment
();
int64_t
*
pi64
;
int64_t
*
pi64
;
double
*
pf
,
f
;
double
*
pf
,
f
;
...
@@ -1843,7 +1846,20 @@ static int Demux( demux_t *p_demux)
...
@@ -1843,7 +1846,20 @@ static int Demux( demux_t *p_demux)
p_stream
->
i_current_segment
++
;
p_stream
->
i_current_segment
++
;
p_segment
=
p_stream
->
Segment
();
p_segment
=
p_stream
->
Segment
();
if
(
!
p_segment
||
!
p_segment
->
Select
(
0
)
)
if
(
!
p_segment
||
!
p_segment
->
Select
(
0
)
)
return
0
;
{
for
(;;)
{
p_sys
->
i_current_stream
++
;
p_stream
=
p_sys
->
Stream
();
if
(
p_stream
)
{
p_segment
=
p_stream
->
Segment
();
if
(
p_segment
&&
p_segment
->
Select
(
0
)
)
break
;
}
return
0
;
}
}
continue
;
continue
;
}
}
...
...
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