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
e25c0df1
Commit
e25c0df1
authored
Jul 15, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: Use pl_Locked for better readability.
parent
8b6e26a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
15 deletions
+18
-15
modules/gui/macosx/playlist.m
modules/gui/macosx/playlist.m
+18
-15
No files found.
modules/gui/macosx/playlist.m
View file @
e25c0df1
...
...
@@ -562,12 +562,6 @@
existence first since OSX sometimes tries to redraw items that have been
deleted. We don't do it when not required since this verification takes
quite a long time on big playlists (yes, pretty hacky). */
-
(
BOOL
)
isItem
:
(
playlist_item_t
*
)
p_item
inNode
:
(
playlist_item_t
*
)
p_node
checkItemExistence
:(
BOOL
)
b_check
{
[
self
isItem
:
p_item
inNode
:
p_node
checkItemExistence
:
b_check
locked
:
NO
];
}
-
(
BOOL
)
isItem
:
(
playlist_item_t
*
)
p_item
inNode
:
(
playlist_item_t
*
)
p_node
...
...
@@ -629,6 +623,13 @@
return
NO
;
}
-
(
BOOL
)
isItem
:
(
playlist_item_t
*
)
p_item
inNode
:
(
playlist_item_t
*
)
p_node
checkItemExistence
:(
BOOL
)
b_check
{
[
self
isItem
:
p_item
inNode
:
p_node
checkItemExistence
:
b_check
locked
:
NO
];
}
/* This method is usefull for instance to remove the selected children of an
already selected node */
-
(
void
)
removeItemsFrom
:(
id
)
o_items
ifChildrenOf
:(
id
)
o_nodes
...
...
@@ -748,7 +749,7 @@
p_item
=
NULL
;
}
}
playlist_Control
(
p_playlist
,
PLAYLIST_VIEWPLAY
,
false
,
p_node
,
p_item
);
playlist_Control
(
p_playlist
,
PLAYLIST_VIEWPLAY
,
pl_Unlocked
,
p_node
,
p_item
);
}
vlc_object_release
(
p_playlist
);
}
...
...
@@ -856,7 +857,7 @@
playlist_NodeDelete
(
p_playlist
,
p_item
,
true
,
false
);
}
else
playlist_DeleteFromInput
(
p_playlist
,
p_item
->
p_input
->
i_id
,
true
);
playlist_DeleteFromInput
(
p_playlist
,
p_item
->
p_input
->
i_id
,
pl_Locked
);
}
PL_UNLOCK
;
...
...
@@ -1017,13 +1018,13 @@
playlist_AddInput
(
p_playlist
,
p_input
,
PLAYLIST_INSERT
,
i_position
==
-
1
?
PLAYLIST_END
:
i_position
+
i_item
,
true
,
true
);
pl_Locked
);
if
(
i_item
==
0
&&
!
b_enqueue
)
{
playlist_item_t
*
p_item
;
p_item
=
playlist_ItemGetByInput
(
p_playlist
,
p_input
,
true
);
playlist_Control
(
p_playlist
,
PLAYLIST_VIEWPLAY
,
true
,
NULL
,
p_item
);
p_item
=
playlist_ItemGetByInput
(
p_playlist
,
p_input
,
pl_Locked
);
playlist_Control
(
p_playlist
,
PLAYLIST_VIEWPLAY
,
pl_Locked
,
NULL
,
p_item
);
}
vlc_gc_decref
(
p_input
);
}
...
...
@@ -1051,19 +1052,21 @@
/* Add the item */
/* FIXME: playlist_BothAddInput() can fail */
playlist_BothAddInput
(
p_playlist
,
p_input
,
p_node
,
PL_LOCK
;
playlist_BothAddInput
(
p_playlist
,
p_input
,
p_node
,
PLAYLIST_INSERT
,
i_position
==
-
1
?
PLAYLIST_END
:
i_position
+
i_item
,
NULL
,
NULL
,
false
);
NULL
,
NULL
,
pl_Locked
);
if
(
i_item
==
0
&&
!
b_enqueue
)
{
playlist_item_t
*
p_item
;
p_item
=
playlist_ItemGetByInput
(
p_playlist
,
p_input
,
true
);
playlist_Control
(
p_playlist
,
PLAYLIST_VIEWPLAY
,
true
,
NULL
,
p_item
);
p_item
=
playlist_ItemGetByInput
(
p_playlist
,
p_input
,
pl_Locked
);
playlist_Control
(
p_playlist
,
PLAYLIST_VIEWPLAY
,
pl_Locked
,
NULL
,
p_item
);
}
PL_UNLOCK
;
vlc_gc_decref
(
p_input
);
}
[
self
playlistUpdated
];
...
...
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