changeset 1711:c7c1e346bb55 trunk

[svn] - no more busy loop if a file in playlist disappears.
author yaz
date Fri, 15 Sep 2006 21:36:31 -0700
parents 43ae2a1bfdee
children 2e7c9f6d9923
files ChangeLog audacious/playlist.c
diffstat 2 files changed, 20 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Sep 15 20:21:35 2006 -0700
+++ b/ChangeLog	Fri Sep 15 21:36:31 2006 -0700
@@ -1,3 +1,17 @@
+2006-09-16 03:21:35 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
+  revision [2357]
+  improvement of filepopup:
+  - now filepopup respects aspect ratio of each image.
+  - it caches scaled image while the same path is being referred.
+  - its image size and delay until coming up is configurable. (no GUI currently.)
+  
+
+  Changes:        Modified:
+  +5 -1           trunk/audacious/main.c  
+  +2 -0           trunk/audacious/main.h  
+  +51 -13         trunk/audacious/ui_fileinfo.c  
+
+
 2006-09-16 03:10:47 +0000  William Pitcock <nenolod@nenolod.net>
   revision [2355]
   - actually on second thought, i don't see the point in this
--- a/audacious/playlist.c	Fri Sep 15 20:21:35 2006 -0700
+++ b/audacious/playlist.c	Fri Sep 15 21:36:31 2006 -0700
@@ -170,10 +170,15 @@
 playlist_entry_get_info(PlaylistEntry * entry)
 {
     TitleInput *tuple;
-    time_t modtime = playlist_get_mtime(entry->filename);
+    time_t modtime;
 
     g_return_val_if_fail(entry != NULL, FALSE);
 
+    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);