[vlc-devel] commit: Use playlist_Lock explicitly ( Rémi Denis-Courmont )
git version control
git at videolan.org
Wed Mar 4 22:42:01 CET 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Mar 4 23:17:49 2009 +0200| [7b5dea4e18472ce3375ca078c5891144bc3b29ca] | committer: Rémi Denis-Courmont
Use playlist_Lock explicitly
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7b5dea4e18472ce3375ca078c5891144bc3b29ca
---
src/control/playlist.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/control/playlist.c b/src/control/playlist.c
index 1d0787a..794c137 100644
--- a/src/control/playlist.c
+++ b/src/control/playlist.c
@@ -75,7 +75,7 @@ void libvlc_playlist_play( libvlc_instance_t *p_instance, int i_id,
if (! playlist_was_locked( p_instance ) )
{
playlist_mark_locked( p_instance, 1 );
- vlc_object_lock( PL );
+ playlist_Lock( PL );
did_lock = 1;
}
@@ -85,7 +85,7 @@ void libvlc_playlist_play( libvlc_instance_t *p_instance, int i_id,
{
if( did_lock == 1 )
{
- vlc_object_unlock( PL );
+ playlist_Unlock( PL );
playlist_mark_locked( p_instance, 0 );
}
RAISEVOID( "Unable to find item" );
@@ -95,7 +95,7 @@ void libvlc_playlist_play( libvlc_instance_t *p_instance, int i_id,
PL->p_root_category, p_item );
if( did_lock == 1 )
{
- vlc_object_unlock( PL );
+ playlist_Lock( PL );
playlist_mark_locked( p_instance, 0 );
}
}
@@ -242,7 +242,7 @@ int libvlc_playlist_get_current_index ( libvlc_instance_t *p_instance,
void libvlc_playlist_lock( libvlc_instance_t *p_instance )
{
assert( PL );
- vlc_object_lock( PL );
+ playlist_Lock( PL );
p_instance->b_playlist_locked = 1;
}
@@ -250,7 +250,7 @@ void libvlc_playlist_unlock( libvlc_instance_t *p_instance )
{
assert( PL );
p_instance->b_playlist_locked = 0;
- vlc_object_unlock( PL );
+ playlist_Unlock( PL );
}
libvlc_media_player_t * libvlc_playlist_get_media_player(
More information about the vlc-devel
mailing list