]> git.sesse.net Git - vlc/blobdiff - modules/gui/wxwidgets/playlist_manager.cpp
Minor change so that 50 is actually the number of items to be updated at a time
[vlc] / modules / gui / wxwidgets / playlist_manager.cpp
index 8a54e9a0c2e276d1f92c2927c912bcfe5f2e54f4..c7b1ea0264edf10d334e591bd0321f04941d4cdb 100644 (file)
@@ -562,7 +562,7 @@ static int ItemAppended( vlc_object_t *p_this, const char *psz_variable,
     playlist_add_t *p_add = (playlist_add_t *)malloc(sizeof( playlist_add_t));
     memcpy( p_add, nval.p_address, sizeof( playlist_add_t ) );
 
-    if( p_playlist->i_items_to_append++ > 50 )
+    if( ++p_playlist->i_items_to_append >= 50 )
     {
         /* Too many items waiting to be added, it will be quicker to rebuild
          * the whole playlist */