summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHristo Kovachev <bger@rockbox.org>2006-02-18 21:44:33 +0000
committerHristo Kovachev <bger@rockbox.org>2006-02-18 21:44:33 +0000
commit800f81006e25d214970c7f653b0cd435df89c12b (patch)
tree9903e55f380be7be3a97524aed48de12919b88a8
parente1b33b96bc21ad60ce2a6758a75b00ed04fb20b8 (diff)
downloadrockbox-800f81006e25d214970c7f653b0cd435df89c12b.tar.gz
rockbox-800f81006e25d214970c7f653b0cd435df89c12b.zip
Oops, fix the simulator builds
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8730 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/jpeg.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/plugins/jpeg.c b/apps/plugins/jpeg.c
index 283c68b9d0..43c1ce111a 100644
--- a/apps/plugins/jpeg.c
+++ b/apps/plugins/jpeg.c
@@ -2685,8 +2685,12 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
rb->strcpy(np_file, parameter);
get_pic_list();
-#if PLUGIN_BUFFER_SIZE >= MIN_MEM
+#if (PLUGIN_BUFFER_SIZE >= MIN_MEM) && !defined(SIMULATOR)
+#if CONFIG_CODEC == SWCODEC
if(rb->pcm_is_playing())
+#else
+ if(rb->mp3_is_playing())
+#endif
{
buf = rb->plugin_get_buffer(&buf_size) +
(entries * sizeof(char**));