changeset 1823:043143e4578e trunk

[svn] - ditto for playlist_get_songtime().
author nenolod
date Thu, 05 Oct 2006 02:43:17 -0700
parents 7e324a23be67
children 2a5621bfc610
files ChangeLog audacious/playlist.c
diffstat 2 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Oct 05 02:41:57 2006 -0700
+++ b/ChangeLog	Thu Oct 05 02:43:17 2006 -0700
@@ -1,3 +1,11 @@
+2006-10-05 09:41:57 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [2601]
+  - tuples with an mtime of 0 don't need to be checked
+  
+  trunk/audacious/playlist.c |    2 +-
+  1 file changed, 1 insertion(+), 1 deletion(-)
+
+
 2006-10-05 09:28:23 +0000  William Pitcock <nenolod@nenolod.net>
   revision [2599]
   - revert
--- a/audacious/playlist.c	Thu Oct 05 02:41:57 2006 -0700
+++ b/audacious/playlist.c	Thu Oct 05 02:43:17 2006 -0700
@@ -1623,8 +1623,7 @@
 
     entry = node->data;
 
-//    if (!entry->title && entry->length == -1) {
-    if (!entry->tuple || (entry->tuple->mtime != playlist_get_mtime(entry->filename))){
+    if (!entry->tuple || (entry->tuple->mtime > 0 && entry->tuple->mtime != playlist_get_mtime(entry->filename))){
 
         if (playlist_entry_get_info(entry))
             song_time = entry->length;