<div class="gmail_quote">On Thu, Aug 13, 2009 at 2:48 PM, git version control <span dir="ltr"><<a href="mailto:git@videolan.org">git@videolan.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div id=":ve" class="ii gt">diff --git a/modules/gui/qt4/components/playlist/playlist_item.cpp b/modules/gui/qt4/components/playlist/playlist_item.cpp<br>
index b0436f0..4b54806 100644<br>
--- a/modules/gui/qt4/components/playlist/playlist_item.cpp<br>
+++ b/modules/gui/qt4/components/playlist/playlist_item.cpp<br>
@@ -48,15 +48,17 @@<br>
*/<br>
<br>
<br>
-void PLItem::init( int _i_id, int _i_input_id, bool _is_node, PLItem *parent, PLModel *m, QSettings *settings )<br>
+void PLItem::init( playlist_item_t *_playlist_item, PLItem *parent, PLModel *m, QSettings *settings )<br>
{<br>
parentItem = parent; /* Can be NULL, but only for the rootItem */<br>
- i_id = _i_id; /* Playlist item specific id */<br>
- i_input_id = _i_input_id; /* Identifier of the input */<br>
+ i_id = _playlist_item->i_id; /* Playlist item specific id */<br>
+ i_input_id = _playlist_item->p_input->i_id; /* Identifier of the input */<br>
model = m; /* PLModel (QAbsmodel) */<br>
i_type = -1; /* Item type - Avoid segfault */<br>
b_current = false; /* Is the item the current Item or not */<br>
- b_is_node = _is_node;<br>
<b>+ b_is_node = _playlist_item->i_children > 1;</b><br>
+ p_input = _playlist_item->p_input;<br>
+ vlc_gc_incref( p_input );</div></blockquote></div><br>Should be:<br>b_is_node = _playlist_item->i_children > - 1;<br>