[easytag] Use Log_Print rather than g_print in ID3v2 reader



commit 469c0db6780d3137927d8d2b204f78d314833bc3
Author: David King <amigadave amigadave com>
Date:   Sun Mar 31 22:59:48 2013 +0100

    Use Log_Print rather than g_print in ID3v2 reader

 src/id3v24_tag.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/id3v24_tag.c b/src/id3v24_tag.c
index 6ec7294..029e869 100644
--- a/src/id3v24_tag.c
+++ b/src/id3v24_tag.c
@@ -107,13 +107,13 @@ gboolean Id3tag_Read_File_Tag (gchar *filename, File_Tag *FileTag)
     long tagsize;
 
 
-    if (!filename || !FileTag)
-        return FALSE;
+    g_return_val_if_fail (filename != NULL || FileTag != NULL, FALSE);
 
     if ( (tmpfile=open(filename,O_RDONLY)) < 0 )
     {
         gchar *filename_utf8 = filename_to_display(filename);
-        g_print(_("Error while opening file: '%s' (%s).\n\a"),filename_utf8,g_strerror(errno));
+        Log_Print (LOG_ERROR, _("Error while opening file: '%s' (%s)."),
+                   filename_utf8, g_strerror (errno));
         g_free(filename_utf8);
         return FALSE;
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]