Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jean-Baptiste Kempf
VLC
Commits
1bd3ab7f
Commit
1bd3ab7f
authored
Apr 26, 2005
by
Steve Lhomme
Browse files
mkv.cpp: avoid leaving the same item in cascade
parent
3d752da0
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
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