[vlc-devel] [PATCH] qt: fix the representation of the playlist tree in debug view
Pierre Lamot
pierre at videolabs.io
Wed Sep 6 15:04:09 CEST 2017
The playlist root node is an empty node, it doesn't have a p_input field.
Thus it should'nt (and can't) be displayer
---
modules/gui/qt/dialogs/messages.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/gui/qt/dialogs/messages.cpp b/modules/gui/qt/dialogs/messages.cpp
index d6a0ecc992..e2b1e80af3 100644
--- a/modules/gui/qt/dialogs/messages.cpp
+++ b/modules/gui/qt/dialogs/messages.cpp
@@ -378,7 +378,9 @@ void MessagesDialog::updatePLTree()
{
vlc_playlist_locker pl_lock ( THEPL );
- pldebugTree->addTopLevelItem( PLWalk( &p_playlist->root ) );
+ playlist_item_t *p_node = &p_playlist->root;
+ for ( int i = 0; p_node->i_children > 0 && i < p_node->i_children; i++ )
+ pldebugTree->addTopLevelItem( PLWalk( p_node->pp_children[ i ] ) );
}
pldebugTree->expandAll();
--
2.14.1
More information about the vlc-devel
mailing list