[easytag/wip/unstable: 6/56] Use Log_Print rather than g_print in ID3v2 reader



commit 8a00e5bf1104b50995fca7d0f251c82b04af89cc
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]