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
75975b30
Commit
75975b30
authored
Jul 08, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: Don't take the playlist lock blindly, where there is no use for it.
parent
44e4691e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
modules/gui/macosx/controls.m
modules/gui/macosx/controls.m
+2
-3
No files found.
modules/gui/macosx/controls.m
View file @
75975b30
...
...
@@ -888,8 +888,6 @@
intf_thread_t
*
p_intf
=
VLCIntf
;
playlist_t
*
p_playlist
=
pl_Yield
(
p_intf
);
vlc_object_lock
(
p_playlist
);
#define p_input p_playlist->p_input
if
(
[[
o_mi
title
]
isEqualToString
:
_NS
(
"Faster"
)]
||
...
...
@@ -916,7 +914,9 @@
[[
o_mi
title
]
isEqualToString
:
_NS
(
"Next"
)]
)
{
/** \todo fix i_size use */
PL_LOCK
;
bEnabled
=
p_playlist
->
items
.
i_size
>
1
;
PL_UNLOCK
;
}
else
if
(
[[
o_mi
title
]
isEqualToString
:
_NS
(
"Random"
)]
)
{
...
...
@@ -999,7 +999,6 @@
[
o_main
setupMenus
];
/* Make sure video menu is up to date */
}
vlc_object_unlock
(
p_playlist
);
vlc_object_release
(
p_playlist
);
return
(
bEnabled
);
...
...
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