[vlc-devel] commit: WinCE intf: LVITEM needs an index (Geoffroy Couprie )
git version control
git at videolan.org
Thu Feb 19 01:41:06 CET 2009
vlc | branch: master | Geoffroy Couprie <geo.couprie at gmail.com> | Thu Feb 19 01:35:51 2009 +0100| [3220b6ce9386c3dd498ae0b5f5e732a0cc895561] | committer: Geoffroy Couprie
WinCE intf: LVITEM needs an index
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3220b6ce9386c3dd498ae0b5f5e732a0cc895561
---
modules/gui/wince/playlist.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/modules/gui/wince/playlist.cpp b/modules/gui/wince/playlist.cpp
index bd0ff58..fd695a4 100644
--- a/modules/gui/wince/playlist.cpp
+++ b/modules/gui/wince/playlist.cpp
@@ -631,6 +631,8 @@ void Playlist::Rebuild()
playlist_item_t * p_root = p_playlist->p_local_onelevel;
playlist_item_t * p_child = NULL;
+ int iItem = 0;
+
while( ( p_child = playlist_GetNextLeaf( p_playlist, p_root, p_child, FALSE, FALSE ) ) )
{
LVITEM lv;
@@ -638,12 +640,13 @@ void Playlist::Rebuild()
lv.pszText = _T("");
lv.cchTextMax = 1;
lv.iSubItem = 0;
- lv.iItem = i;
+ lv.iItem = iItem;
ListView_InsertItem( hListView, &lv );
ListView_SetItemText( hListView, lv.iItem, 0,
_FROMMB(p_child->p_input->psz_name) );
UpdateItem( p_child->i_id );
+ iItem++;
}
PL_UNLOCK;
More information about the vlc-devel
mailing list