Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
bc73c16c
Commit
bc73c16c
authored
Mar 06, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Factor and fix locking
parent
f18966f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
src/control/playlist.c
src/control/playlist.c
+5
-11
No files found.
src/control/playlist.c
View file @
bc73c16c
...
...
@@ -81,21 +81,15 @@ void libvlc_playlist_play( libvlc_instance_t *p_instance, int i_id,
p_item
=
playlist_ItemGetByInputId
(
PL
,
i_id
,
PL
->
p_root_category
);
if
(
!
p_item
)
{
if
(
did_lock
==
1
)
{
playlist_Unlock
(
PL
);
playlist_mark_locked
(
p_instance
,
0
);
}
if
(
p_item
)
playlist_Control
(
PL
,
PLAYLIST_VIEWPLAY
,
pl_Locked
,
PL
->
p_root_category
,
p_item
);
else
RAISEVOID
(
"Unable to find item"
);
}
playlist_Control
(
PL
,
PLAYLIST_VIEWPLAY
,
pl_Locked
,
PL
->
p_root_category
,
p_item
);
if
(
did_lock
==
1
)
{
playlist_
L
ock
(
PL
);
playlist_
Unl
ock
(
PL
);
playlist_mark_locked
(
p_instance
,
0
);
}
}
...
...
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