changeset 4309:70fc534162ec

oops
author Eugene Zagidullin <e.asphyx@gmail.com>
date Mon, 25 Feb 2008 02:44:54 +0300
parents e708d98dcc0c
children 822bc79f54bd
files src/audacious/ui_equalizer.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_equalizer.c	Mon Feb 25 02:43:01 2008 +0300
+++ b/src/audacious/ui_equalizer.c	Mon Feb 25 02:44:54 2008 +0300
@@ -1025,16 +1025,16 @@
 {
     VFSFile *file;
     gchar *tmp;
+    GList *list;
 
-    if (!(file = vfs_fopen(filename, "rb"))) {
+    if (!(file = vfs_fopen(filename, "rb")) || (list = import_winamp_eqf(file)) == NULL) {
         tmp = g_strconcat("Failed to import WinAmp file: ",filename,"\n",NULL);
         report_error(tmp);
         g_free(tmp);
         return;
     }
 
-    equalizer_presets = g_list_concat(equalizer_presets,
-                                      import_winamp_eqf(file));
+    equalizer_presets = g_list_concat(equalizer_presets, list);
     equalizerwin_write_preset_file(equalizer_presets, "eq.preset");
 
     vfs_fclose(file);