Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
58052ea4
Commit
58052ea4
authored
Feb 24, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: work-around a crash when deleting an entire playlist root
parent
9db8e1cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
modules/gui/macosx/playlist.m
modules/gui/macosx/playlist.m
+12
-1
No files found.
modules/gui/macosx/playlist.m
View file @
58052ea4
...
...
@@ -936,6 +936,17 @@
p_playlist
=
pl_Get
(
p_intf
);
NSUInteger
indexes
[
i_count
];
if
(
i_count
==
[
o_outline_view
numberOfRows
])
{
#ifndef NDEBUG
msg_Dbg
(
p_intf
,
"user selected entire list, deleting current playlist root instead of individual items"
);
#endif
PL_LOCK
;
playlist_NodeDelete
(
p_playlist
,
[
self
currentPlaylistRoot
],
true
,
false
);
PL_UNLOCK
;
[
self
playlistUpdated
];
return
;
}
[
o_selected_indexes
getIndexes
:
indexes
maxCount
:
i_count
inIndexRange
:
nil
];
for
(
int
i
=
0
;
i
<
i_count
;
i
++
)
{
...
...
@@ -958,7 +969,7 @@
// if current item is in selected node and is playing then stop playlist
playlist_Control
(
p_playlist
,
PLAYLIST_STOP
,
pl_Locked
);
playlist_NodeDelete
(
p_playlist
,
p_item
,
true
,
false
);
playlist_NodeDelete
(
p_playlist
,
p_item
,
true
,
false
);
}
else
playlist_DeleteFromInput
(
p_playlist
,
p_item
->
p_input
,
pl_Locked
);
...
...
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