Mercurial > audlegacy
changeset 4737:2d69832b7136
Fix infinite playlist update when entry->tuple == NULL. Patch from Skotlex,
closes Bugzilla #42.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 17 Jul 2008 21:59:39 +0300 |
parents | e14398ef0868 |
children | 117bae4c2797 |
files | src/audacious/playlist.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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;