[vlc-devel] commit: Qt4: Fix compilation (Christophe Mutricy )
git version control
git at videolan.org
Sun Sep 28 00:50:54 CEST 2008
vlc | branch: master | Christophe Mutricy <xtophe at videolan.org> | Sat Sep 27 22:55:22 2008 +0100| [776639f81e6cc2bc05fe5853cc8626918a8ef2d0] | committer: Christophe Mutricy
Qt4: Fix compilation
Seems to works but i would appreciate a review by a playlist guru
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=776639f81e6cc2bc05fe5853cc8626918a8ef2d0
---
.../gui/qt4/components/playlist/playlist_model.cpp | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index b687d1d..d4d7e47 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -585,6 +585,7 @@ void PLModel::rebuild()
void PLModel::rebuild( playlist_item_t *p_root )
{
+ playlist_item_t* p_item;
/* Remove callbacks before locking to avoid deadlocks */
delCallbacks();
/* Invalidate cache */
@@ -611,13 +612,13 @@ void PLModel::rebuild( playlist_item_t *p_root )
assert( rootItem );
/* Recreate from root */
UpdateNodeChildren( rootItem );
- if( p_playlist->status.p_item )
+ if( p_item=playlist_CurrentPlayingItem(p_playlist) )
{
PLItem *currentItem = FindByInput( rootItem,
- p_playlist->status.p_item->p_input->i_id );
+ p_item->p_input->i_id );
if( currentItem )
{
- UpdateTreeItem( p_playlist->status.p_item, currentItem,
+ UpdateTreeItem( p_item, currentItem,
true, false );
}
}
@@ -667,7 +668,7 @@ void PLModel::UpdateTreeItem( playlist_item_t *p_item, PLItem *item,
if( !force && i_depth == DEPTH_SEL && p_item->p_parent &&
p_item->p_parent->i_id != rootItem->i_id )
return;
- item->update( p_item, p_item == p_playlist->status.p_item );
+ item->update( p_item, p_item == playlist_CurrentPlayingItem( p_playlist ) );
if( signal )
emit dataChanged( index( item, 0 ) , index( item, 1 ) );
}
More information about the vlc-devel
mailing list