Mercurial > audlegacy
diff audacious/playlist.c @ 1824:2a5621bfc610 trunk
[svn] - more mtime = 0 checks
- try to grab the tuple immediately on add
author | nenolod |
---|---|
date | Thu, 05 Oct 2006 03:03:56 -0700 |
parents | 043143e4578e |
children | 8b71a2b0577b |
line wrap: on
line diff
--- a/audacious/playlist.c Thu Oct 05 02:43:17 2006 -0700 +++ b/audacious/playlist.c Thu Oct 05 03:03:56 2006 -0700 @@ -143,6 +143,9 @@ entry->selected = FALSE; entry->decoder = dec; + if (entry->decoder) + entry->tuple = entry->decoder->get_song_tuple(entry->filename); + return entry; } @@ -174,7 +177,10 @@ g_return_val_if_fail(entry != NULL, FALSE); - modtime = playlist_get_mtime(entry->filename); + if (!entry->tuple || entry->tuple->mtime > 0) + modtime = playlist_get_mtime(entry->filename); + else + modtime = 0; /* URI -nenolod */ if (entry->decoder == NULL) entry->decoder = input_check_file(entry->filename, FALSE);