aboutsummaryrefslogtreecommitdiff
path: root/src/tag_id3.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-10-04 09:34:48 +0200
committerMax Kellermann <max@duempel.org>2012-10-04 10:31:53 +0200
commitefbf184fe80c61f7666ded3342fcb97c1b770758 (patch)
tree82a7e8abd83e7edd68a1983ca16daae6753d625e /src/tag_id3.c
parentdd577fb857141bc0d8bfa094a4697163b17deaad (diff)
PlaylistFile, client_file, tag_id3: don't use g_file_error_quark()
g_file_error_quark() is meant to be used with the GFileError enum which does not correspond with errno, but must be converted with g_file_error_from_errno(). At the same time, this removes g_strerror() use for g_file_error_quark().
Diffstat (limited to 'src/tag_id3.c')
-rw-r--r--src/tag_id3.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tag_id3.c b/src/tag_id3.c
index 0971829f..5f589d58 100644
--- a/src/tag_id3.c
+++ b/src/tag_id3.c
@@ -25,6 +25,7 @@
#include "riff.h"
#include "aiff.h"
#include "conf.h"
+#include "io_error.h"
#include <glib.h>
#include <id3tag.h>
@@ -546,7 +547,7 @@ tag_id3_load(const char *path_fs, GError **error_r)
{
FILE *file = fopen(path_fs, "rb");
if (file == NULL) {
- g_set_error(error_r, g_file_error_quark(), errno,
+ g_set_error(error_r, errno_quark(), errno,
"Failed to open file %s: %s",
path_fs, g_strerror(errno));
return NULL;