summaryrefslogtreecommitdiffstats
path: root/apps/plugins/pdbox/PDa/src/g_array.c
diff options
context:
space:
mode:
authorWincent Balin <wincent@rockbox.org>2010-06-01 00:23:59 +0000
committerWincent Balin <wincent@rockbox.org>2010-06-01 00:23:59 +0000
commita266ff185a3f03b6fde88df6eca0c4941c8564f2 (patch)
treeb6878961d12be55576f0577be9fd86d2c4a443df /apps/plugins/pdbox/PDa/src/g_array.c
parentdc496d6fbebc1a55e5e519deb946a31c0cb748b8 (diff)
downloadrockbox-a266ff185a3f03b6fde88df6eca0c4941c8564f2.tar.gz
rockbox-a266ff185a3f03b6fde88df6eca0c4941c8564f2.tar.bz2
rockbox-a266ff185a3f03b6fde88df6eca0c4941c8564f2.zip
pdbox: Solved issue with WAV file import on big-endian targets (signed 16-bit files only); small I/O-related workaround in g_array.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26439 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pdbox/PDa/src/g_array.c')
-rw-r--r--apps/plugins/pdbox/PDa/src/g_array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/pdbox/PDa/src/g_array.c b/apps/plugins/pdbox/PDa/src/g_array.c
index 8b8c6bcd5a..484e6fa33d 100644
--- a/apps/plugins/pdbox/PDa/src/g_array.c
+++ b/apps/plugins/pdbox/PDa/src/g_array.c
@@ -1154,7 +1154,7 @@ static void garray_read(t_garray *x, t_symbol *filename)
canvas_getdir(glist_getcanvas(x->x_glist))->s_name,
filename->s_name, "", buf, &bufptr, MAXPDSTRING, 0)) < 0
#ifdef ROCKBOX
- )
+ || !(fd = filedesc))
#else
|| !(fd = fdopen(filedesc, "r")))
#endif
@@ -1234,7 +1234,7 @@ static void garray_read16(t_garray *x, t_symbol *filename,
canvas_getdir(glist_getcanvas(x->x_glist))->s_name,
filename->s_name, "", buf, &bufptr, MAXPDSTRING, 1)) < 0
#ifdef ROCKBOX
- )
+ || !(fd = filedesc))
#else
|| !(fd = fdopen(filedesc, BINREADMODE)))
#endif