# HG changeset patch # User nenolod # Date 1160038477 25200 # Node ID e3e31a084b09b05b32d63d1c5e29c6828c1f7af2 # Parent 0734a98088844e7c7aa9f48f6291ff87d34c0a33 [svn] - try not to reject tuples that have an mtime of 0. (special tuples referring to URIs) diff -r 0734a9808884 -r e3e31a084b09 ChangeLog --- a/ChangeLog Thu Oct 05 01:31:41 2006 -0700 +++ b/ChangeLog Thu Oct 05 01:54:37 2006 -0700 @@ -1,3 +1,11 @@ +2006-10-05 08:31:41 +0000 William Pitcock + revision [2591] + - make sure the PlaylistEntry has a tuple. + + trunk/audacious/playlist.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + + 2006-10-05 06:45:55 +0000 William Pitcock revision [2589] - missed a couple of properties, sorry diff -r 0734a9808884 -r e3e31a084b09 audacious/playlist.c --- a/audacious/playlist.c Thu Oct 05 01:31:41 2006 -0700 +++ b/audacious/playlist.c Thu Oct 05 01:54:37 2006 -0700 @@ -176,9 +176,6 @@ modtime = playlist_get_mtime(entry->filename); - if (modtime == 0) // maybe file not exist - return FALSE; - if (entry->decoder == NULL) entry->decoder = input_check_file(entry->filename, FALSE); @@ -1552,7 +1549,6 @@ entry = node->data; /* FIXME: simplify this logic */ -// if (!entry->title && entry->length == -1) { if ( (!entry->title && entry->length == -1) || (entry->tuple && (entry->tuple->mtime != playlist_get_mtime(entry->filename))) ){ if (playlist_entry_get_info(entry)) @@ -2072,6 +2068,7 @@ GList *node; PlaylistEntry *entry = NULL; TitleInput *tuple = NULL; + gint mtime; PLAYLIST_LOCK(); @@ -2085,8 +2082,8 @@ PLAYLIST_UNLOCK(); /* No tuple? Try to set this entry up properly. --nenolod */ -// if (entry->tuple == NULL) - if (!entry->tuple || (entry->tuple->mtime != playlist_get_mtime(entry->filename))) + if (entry->tuple == NULL || entry->tuple->mtime == 0 || + (entry->tuple->mtime != playlist_get_mtime(entry->filename))) { playlist_entry_get_info(entry); tuple = entry->tuple;