]> git.sesse.net Git - vlc/commitdiff
Minor change so that 50 is actually the number of items to be updated at a time
authorRémi Denis-Courmont <rem@videolan.org>
Fri, 17 Feb 2006 11:07:57 +0000 (11:07 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Fri, 17 Feb 2006 11:07:57 +0000 (11:07 +0000)
(rather than 50 + 2)

modules/gui/wxwidgets/dialogs/playlist.cpp
modules/gui/wxwidgets/playlist_manager.cpp

index 860ad376013e8f98434617b3de7394b54066e833..cac7cfc73d45fe6d2aa135d2731f8f103090eb2c 100644 (file)
@@ -1520,7 +1520,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_dialog->i_items_to_append++ > 50 )
+    if( ++p_playlist_dialog->i_items_to_append >= 50 )
     {
         /* Too many items waiting to be added, it will be quicker to rebuild
          * the whole playlist */
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 */