changeset 1160:98a760301a4e trunk

[svn] - add a check for file existence to fileinfo dialog. closes #941.
author yaz
date Sun, 03 Jun 2007 11:20:23 -0700
parents a03aec49af4d
children 1ba0d3500f3c
files ChangeLog src/madplug/fileinfo.c
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Jun 03 07:16:44 2007 -0700
+++ b/ChangeLog	Sun Jun 03 11:20:23 2007 -0700
@@ -1,3 +1,11 @@
+2007-06-03 14:16:44 +0000  Jonathan Schleifer <js@h3c.de>
+  revision [2484]
+  Replace sprintf with snprintf.
+  
+  trunk/src/wavpack/tags.cxx |    2 +-
+  1 file changed, 1 insertion(+), 1 deletion(-)
+
+
 2007-06-01 23:03:58 +0000  Jonathan Schleifer <js@h3c.de>
   revision [2482]
   Revert r2480, thanks to FreeBSD.
--- a/src/madplug/fileinfo.c	Sun Jun 03 07:16:44 2007 -0700
+++ b/src/madplug/fileinfo.c	Sun Jun 03 11:20:23 2007 -0700
@@ -576,6 +576,11 @@
         g_free(tmp);
     }
 #endif
+
+    if(!g_file_test(filename, G_FILE_TEST_EXISTS)) {
+        return;
+    }
+
     input_init(&info, filename);
 
     if(audmad_is_remote(filename)) {