Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
65c56bb9
Commit
65c56bb9
authored
Jun 05, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix playlist crash on quit
parent
d90a5fa3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
19 deletions
+7
-19
src/playlist/tree.c
src/playlist/tree.c
+7
-19
No files found.
src/playlist/tree.c
View file @
65c56bb9
...
...
@@ -155,27 +155,15 @@ int playlist_NodeDelete( playlist_t *p_playlist, playlist_item_t *p_root,
else
{
var_SetInteger
(
p_playlist
,
"item-deleted"
,
p_root
->
p_input
->
i_id
);
i_bottom
=
0
;
i_top
=
p_playlist
->
i_all_size
-
1
;
i
=
i_top
/
2
;
while
(
p_playlist
->
pp_all_items
[
i
]
->
p_input
->
i_id
!=
p_root
->
p_input
->
i_id
&&
i_top
>
i_bottom
)
for
(
i
=
0
;
i
<
p_playlist
->
i_all_size
;
i
++
)
{
if
(
p_playlist
->
pp_all_items
[
i
]
->
p_input
->
i_id
<
if
(
p_playlist
->
pp_all_items
[
i
]
->
p_input
->
i_id
==
p_root
->
p_input
->
i_id
)
{
i_bottom
=
i
+
1
;
}
else
{
i_top
=
i
-
1
;
}
i
=
i_bottom
+
(
i_top
-
i_bottom
)
/
2
;
}
if
(
p_playlist
->
pp_all_items
[
i
]
->
p_input
->
i_id
==
p_root
->
p_input
->
i_id
)
{
REMOVE_ELEM
(
p_playlist
->
pp_all_items
,
p_playlist
->
i_all_size
,
i
);
{
REMOVE_ELEM
(
p_playlist
->
pp_all_items
,
p_playlist
->
i_all_size
,
i
);
break
;
}
}
/* Remove the item from its 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