[vlc-commits] qt: input item IDs are not negative

Rémi Denis-Courmont git at videolan.org
Mon Nov 14 23:03:14 CET 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Nov 14 23:59:05 2016 +0200| [9cb3c475361c07fa318b530517659b905e08277f] | committer: Rémi Denis-Courmont

qt: input item IDs are not negative

Or they are not until we have 2 billions of them, and even then, the
sign is not relevant.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9cb3c475361c07fa318b530517659b905e08277f
---

 modules/gui/qt/components/playlist/playlist_model.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt/components/playlist/playlist_model.cpp b/modules/gui/qt/components/playlist/playlist_model.cpp
index 679c11b..6447291 100644
--- a/modules/gui/qt/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt/components/playlist/playlist_model.cpp
@@ -590,7 +590,7 @@ void PLModel::processInputItemUpdate( )
 
 void PLModel::processInputItemUpdate( input_item_t *p_item )
 {
-    if( !p_item ||  p_item->i_id <= 0 ) return;
+    if( !p_item ) return;
     PLItem *item = findByInputId( rootItem, p_item->i_id );
     if( item )
         updateTreeItem( item );



More information about the vlc-commits mailing list