diff options
Diffstat (limited to 'common/fmplayer_file_gio.c')
-rw-r--r-- | common/fmplayer_file_gio.c | 4 |
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)); |