From: RĂ©mi Duraffort Date: Sat, 19 Jul 2008 12:38:10 +0000 (+0200) Subject: Use pl_Locked and pl_Unlocked. X-Git-Tag: 0.9.0-test3~363 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=ee7537e77ae5c190881227db774a1eee6c1c7aa8;p=vlc Use pl_Locked and pl_Unlocked. --- diff --git a/modules/access/cdda/info.c b/modules/access/cdda/info.c index 5529e8e057..19d0dd0de8 100644 --- a/modules/access/cdda/info.c +++ b/modules/access/cdda/info.c @@ -961,7 +961,7 @@ CDDAFixupPlaylist( access_t *p_access, cdda_data_t *p_cdda, if( b_play ) { - playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, false, + playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, pl_Unlocked, p_playlist->status.p_item, NULL ); } diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c index 88b521057c..98bb4c234f 100644 --- a/modules/control/hotkeys.c +++ b/modules/control/hotkeys.c @@ -925,7 +925,7 @@ static void PlayBookmark( intf_thread_t *p_intf, int i_num ) if( !strcmp( psz_bookmark, psz_uri ) ) { free( psz_uri ); - playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, true, + playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, pl_Locked, NULL, p_item ); break; } diff --git a/modules/control/rc.c b/modules/control/rc.c index 54c3cad6e8..bb1daae18d 100644 --- a/modules/control/rc.c +++ b/modules/control/rc.c @@ -1417,7 +1417,7 @@ static int Playlist( vlc_object_t *p_this, char const *psz_cmd, p_item = p_parent = p_playlist->items.p_elems[i_pos*2-1]; while( p_parent->p_parent ) p_parent = p_parent->p_parent; - playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, false, + playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, pl_Unlocked, p_parent, p_item ); } else diff --git a/modules/gui/ncurses.c b/modules/gui/ncurses.c index dd9b9b204f..45a580a7b1 100644 --- a/modules/gui/ncurses.c +++ b/modules/gui/ncurses.c @@ -711,7 +711,7 @@ static int HandleKey( intf_thread_t *p_intf, int i_key ) while( p_parent->p_parent ) p_parent = p_parent->p_parent; playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, - false, p_parent, p_item ); + pl_Unlocked, p_parent, p_item ); } else if( p_sys->pp_plist[p_sys->i_box_plidx]->p_item->i_children == 0 ) @@ -722,7 +722,7 @@ static int HandleKey( intf_thread_t *p_intf, int i_key ) else { p_sys->p_node = p_sys->pp_plist[p_sys->i_box_plidx]->p_item; - playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, false, + playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, pl_Unlocked, p_sys->pp_plist[p_sys->i_box_plidx]->p_item, NULL ); } b_box_plidx_follow = true; diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp index fa8a3cf8be..710156accb 100644 --- a/modules/gui/qt4/components/playlist/playlist_model.cpp +++ b/modules/gui/qt4/components/playlist/playlist_model.cpp @@ -276,7 +276,7 @@ void PLModel::activateItem( playlist_item_t *p_item ) p_parent = p_parent->p_parent; } if( p_parent ) - playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, true, + playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, pl_Locked, p_parent, p_item ); } diff --git a/modules/gui/skins2/vars/playtree.cpp b/modules/gui/skins2/vars/playtree.cpp index 667e33f491..ad808d4214 100644 --- a/modules/gui/skins2/vars/playtree.cpp +++ b/modules/gui/skins2/vars/playtree.cpp @@ -112,7 +112,7 @@ void Playtree::action( VarTree *pItem ) if( p_parent ) { - playlist_Control( m_pPlaylist, PLAYLIST_VIEWPLAY, true, p_parent, p_item ); + playlist_Control( m_pPlaylist, PLAYLIST_VIEWPLAY, pl_Locked, p_parent, p_item ); } vlc_object_unlock( m_pPlaylist ); } diff --git a/src/control/playlist.c b/src/control/playlist.c index d68971cf5e..8e98dbcc52 100644 --- a/src/control/playlist.c +++ b/src/control/playlist.c @@ -91,7 +91,7 @@ void libvlc_playlist_play( libvlc_instance_t *p_instance, int i_id, RAISEVOID( "Unable to find item" ); } - playlist_Control( PL, PLAYLIST_VIEWPLAY, true, + playlist_Control( PL, PLAYLIST_VIEWPLAY, pl_Locked, PL->status.p_node, p_item ); if( did_lock == 1 ) { diff --git a/src/playlist/item.c b/src/playlist/item.c index d131d45985..d9d9e9dd95 100644 --- a/src/playlist/item.c +++ b/src/playlist/item.c @@ -99,7 +99,7 @@ static void input_item_subitem_added( const vlc_event_t * p_event, if( i_ret == VLC_SUCCESS && b_play ) { playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, - true, p_item_in_category, NULL ); + pl_Locked, p_item_in_category, NULL ); } }