# HG changeset patch # User Yoshiki Yazawa # Date 1197806093 -32400 # Node ID 776c307474397803b1c9d48ab52eef968da88326 # Parent 96d8114f0b89ec67984dba1dc19a7182b67780f1 avoid unnecessary serial increment. diff -r 96d8114f0b89 -r 776c30747439 src/audacious/playlist.c --- a/src/audacious/playlist.c Sun Dec 16 19:03:05 2007 +0900 +++ b/src/audacious/playlist.c Sun Dec 16 20:54:53 2007 +0900 @@ -2604,10 +2604,13 @@ if(playlist->attribute & PLAYLIST_STATIC || (entry->tuple && tuple_get_int(entry->tuple, FIELD_LENGTH, NULL) > -1 && tuple_get_int(entry->tuple, FIELD_MTIME, NULL) != -1)) { - update_playlistwin = TRUE; continue; } + AUDDBG("len=%d mtime=%d\n", + tuple_get_int(entry->tuple, FIELD_LENGTH, NULL), + tuple_get_int(entry->tuple, FIELD_MTIME, NULL)); + if (!playlist_entry_get_info(entry)) { if (g_list_index(playlist->entries, entry) == -1) /* Entry disapeared while we @@ -2622,6 +2625,7 @@ } } } // on_demand + else if (cfg.get_info_on_demand && (!cfg.playlist_visible || cfg.playlist_shaded || !cfg.use_pl_metadata)) { @@ -2629,6 +2633,7 @@ playlist_get_info_scan_active = FALSE; g_mutex_unlock(mutex_scan); } + else /* not on_demand and not on_load... NOTE: this shouldn't happen anymore, sanity check in bmp_config_load now */ {