aboutsummaryrefslogtreecommitdiff
path: root/common/fmplayer_file_gio.c
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-04-12 01:04:15 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2017-04-12 01:04:15 +0900
commitab379f2bb081f3fe2ea77ed163f755f59a49e6cf (patch)
treeb06142d1b4f765e23531abc50ad229494b241a04 /common/fmplayer_file_gio.c
parentc6c96944ae1bb1d7363349ec21be9dca76ee9ec4 (diff)
added wave output
Diffstat (limited to 'common/fmplayer_file_gio.c')
-rw-r--r--common/fmplayer_file_gio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/fmplayer_file_gio.c b/common/fmplayer_file_gio.c
index 5e9dd84..a2b52d2 100644
--- a/common/fmplayer_file_gio.c
+++ b/common/fmplayer_file_gio.c
@@ -27,7 +27,7 @@ static void *fileread(GFile *f, size_t maxsize, size_t *filesize, enum fmplayer_
}
fstream = g_file_read(f, 0, 0);
if (!fstream) {
- if (error) *error = FMPLAYER_FILE_ERR_FILEIO;
+ if (error) *error = FMPLAYER_FILE_ERR_NOTFOUND;
goto err;
}
buf = malloc(filelen);
@@ -107,7 +107,7 @@ void *fmplayer_fileread(const void *pathptr, const char *pcmname, const char *ex
g_object_unref(G_OBJECT(pcmfile));
g_object_unref(G_OBJECT(info));
}
- if (error) *error = FMPLAYER_FILE_ERR_FILEIO;
+ if (error) *error = FMPLAYER_FILE_ERR_NOTFOUND;
err:
if (direnum) g_object_unref(G_OBJECT(direnum));
if (dir) g_object_unref(G_OBJECT(dir));