Commit ddd8d745 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Minor change so that 50 is actually the number of items to be updated at a time

(rather than 50 + 2)
parent 3be81494
......@@ -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 */
......
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment