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
1bd3ab7f
Commit
1bd3ab7f
authored
Apr 26, 2005
by
Steve Lhomme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mkv.cpp: avoid leaving the same item in cascade
parent
3d752da0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
modules/demux/mkv.cpp
modules/demux/mkv.cpp
+5
-1
No files found.
modules/demux/mkv.cpp
View file @
1bd3ab7f
...
...
@@ -596,6 +596,7 @@ public:
,
b_display_seekpoint
(
true
)
,
b_user_display
(
false
)
,
psz_parent
(
NULL
)
,
b_is_leaving
(
false
)
{}
virtual
~
chapter_item_c
()
...
...
@@ -635,6 +636,7 @@ public:
bool
b_user_display
;
std
::
string
psz_name
;
chapter_item_c
*
psz_parent
;
bool
b_is_leaving
;
std
::
vector
<
chapter_codec_cmds_c
*>
codecs
;
...
...
@@ -4519,6 +4521,7 @@ bool chapter_item_c::Enter( bool b_do_subs )
bool
chapter_item_c
::
Leave
(
bool
b_do_subs
)
{
bool
f_result
=
false
;
b_is_leaving
=
true
;
std
::
vector
<
chapter_codec_cmds_c
*>::
iterator
index
=
codecs
.
begin
();
while
(
index
!=
codecs
.
end
()
)
{
...
...
@@ -4536,6 +4539,7 @@ bool chapter_item_c::Leave( bool b_do_subs )
index_
++
;
}
}
b_is_leaving
=
false
;
return
f_result
;
}
...
...
@@ -4546,7 +4550,7 @@ bool chapter_item_c::EnterAndLeave( chapter_item_c *p_item )
// leave, up to a common parent
while
(
p_common_parent
!=
NULL
&&
!
p_common_parent
->
ParentOf
(
*
this
)
)
{
if
(
p_common_parent
->
Leave
(
false
)
)
if
(
!
p_common_parent
->
b_is_leaving
&&
p_common_parent
->
Leave
(
false
)
)
return
true
;
p_common_parent
=
p_common_parent
->
psz_parent
;
}
...
...
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