# HG changeset patch # User Matti Hamalainen # Date 1216321179 -10800 # Node ID 2d69832b713614191841fb1b5a64140e9c08f52e # Parent e14398ef086894ddf31a9d243dfa8d95ec68720e Fix infinite playlist update when entry->tuple == NULL. Patch from Skotlex, closes Bugzilla #42. diff -r e14398ef0868 -r 2d69832b7136 src/audacious/playlist.c --- a/src/audacious/playlist.c Thu Jul 17 20:21:52 2008 +0200 +++ b/src/audacious/playlist.c Thu Jul 17 21:59:39 2008 +0300 @@ -2437,7 +2437,7 @@ /* Entry disappeared while we looked it up. Restart. */ node = playlist->entries; - else if ((entry->tuple != NULL || entry->title != NULL) && + else if (entry->tuple != NULL && tuple_get_int(entry->tuple, FIELD_LENGTH, NULL) > -1 && tuple_get_int(entry->tuple, FIELD_MTIME, NULL) != -1) { @@ -2488,7 +2488,7 @@ node = g_list_nth(playlist->entries, playlistwin_get_toprow()); } - else if ((entry->tuple != NULL || entry->title != NULL) && + else if (entry->tuple != NULL && tuple_get_int(entry->tuple, FIELD_LENGTH, NULL) > -1 && tuple_get_int(entry->tuple, FIELD_MTIME, NULL) != -1) { update_playlistwin = TRUE;