[easytag] Set the GError when failing to read ID3 tags
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Set the GError when failing to read ID3 tags
- Date: Sun, 2 Nov 2014 18:49:21 +0000 (UTC)
commit cef074fd5f2bd538817577d5ca93d6d4e3c3c20e
Author: David King <amigadave amigadave com>
Date: Sun Nov 2 18:48:42 2014 +0000
Set the GError when failing to read ID3 tags
src/tags/id3v24_tag.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/tags/id3v24_tag.c b/src/tags/id3v24_tag.c
index 76ab6f2..b18de6a 100644
--- a/src/tags/id3v24_tag.c
+++ b/src/tags/id3v24_tag.c
@@ -227,6 +227,8 @@ id3tag_read_file_tag (GFile *gfile,
if ((file = id3_file_open (filename, ID3_FILE_MODE_READONLY)) == NULL)
{
g_free (filename);
+ g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, "%s",
+ _("Error reading tags from file"));
return FALSE;
}
@@ -236,6 +238,8 @@ id3tag_read_file_tag (GFile *gfile,
|| (tag->nframes == 0))
{
id3_file_close(file);
+ g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, "%s",
+ _("Error reading tags from file"));
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]