Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
7b5dea4e
Commit
7b5dea4e
authored
Mar 04, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use playlist_Lock explicitly
parent
3f107edb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/control/playlist.c
src/control/playlist.c
+5
-5
No files found.
src/control/playlist.c
View file @
7b5dea4e
...
@@ -75,7 +75,7 @@ void libvlc_playlist_play( libvlc_instance_t *p_instance, int i_id,
...
@@ -75,7 +75,7 @@ void libvlc_playlist_play( libvlc_instance_t *p_instance, int i_id,
if
(
!
playlist_was_locked
(
p_instance
)
)
if
(
!
playlist_was_locked
(
p_instance
)
)
{
{
playlist_mark_locked
(
p_instance
,
1
);
playlist_mark_locked
(
p_instance
,
1
);
vlc_object_l
ock
(
PL
);
playlist_L
ock
(
PL
);
did_lock
=
1
;
did_lock
=
1
;
}
}
...
@@ -85,7 +85,7 @@ void libvlc_playlist_play( libvlc_instance_t *p_instance, int i_id,
...
@@ -85,7 +85,7 @@ void libvlc_playlist_play( libvlc_instance_t *p_instance, int i_id,
{
{
if
(
did_lock
==
1
)
if
(
did_lock
==
1
)
{
{
vlc_object_u
nlock
(
PL
);
playlist_U
nlock
(
PL
);
playlist_mark_locked
(
p_instance
,
0
);
playlist_mark_locked
(
p_instance
,
0
);
}
}
RAISEVOID
(
"Unable to find item"
);
RAISEVOID
(
"Unable to find item"
);
...
@@ -95,7 +95,7 @@ void libvlc_playlist_play( libvlc_instance_t *p_instance, int i_id,
...
@@ -95,7 +95,7 @@ void libvlc_playlist_play( libvlc_instance_t *p_instance, int i_id,
PL
->
p_root_category
,
p_item
);
PL
->
p_root_category
,
p_item
);
if
(
did_lock
==
1
)
if
(
did_lock
==
1
)
{
{
vlc_object_unl
ock
(
PL
);
playlist_L
ock
(
PL
);
playlist_mark_locked
(
p_instance
,
0
);
playlist_mark_locked
(
p_instance
,
0
);
}
}
}
}
...
@@ -242,7 +242,7 @@ int libvlc_playlist_get_current_index ( libvlc_instance_t *p_instance,
...
@@ -242,7 +242,7 @@ int libvlc_playlist_get_current_index ( libvlc_instance_t *p_instance,
void
libvlc_playlist_lock
(
libvlc_instance_t
*
p_instance
)
void
libvlc_playlist_lock
(
libvlc_instance_t
*
p_instance
)
{
{
assert
(
PL
);
assert
(
PL
);
vlc_object_l
ock
(
PL
);
playlist_L
ock
(
PL
);
p_instance
->
b_playlist_locked
=
1
;
p_instance
->
b_playlist_locked
=
1
;
}
}
...
@@ -250,7 +250,7 @@ void libvlc_playlist_unlock( libvlc_instance_t *p_instance )
...
@@ -250,7 +250,7 @@ void libvlc_playlist_unlock( libvlc_instance_t *p_instance )
{
{
assert
(
PL
);
assert
(
PL
);
p_instance
->
b_playlist_locked
=
0
;
p_instance
->
b_playlist_locked
=
0
;
vlc_object_u
nlock
(
PL
);
playlist_U
nlock
(
PL
);
}
}
libvlc_media_player_t
*
libvlc_playlist_get_media_player
(
libvlc_media_player_t
*
libvlc_playlist_get_media_player
(
...
...
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