From ab379f2bb081f3fe2ea77ed163f755f59a49e6cf Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Wed, 12 Apr 2017 01:04:15 +0900 Subject: added wave output --- common/fmplayer_file_gio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/fmplayer_file_gio.c') 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)); -- cgit v1.2.3