diff options
Diffstat (limited to 'lib/rbcodec/codecs/vorbis.c')
-rw-r--r-- | lib/rbcodec/codecs/vorbis.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rbcodec/codecs/vorbis.c b/lib/rbcodec/codecs/vorbis.c index 83c9d5b31d..ce1f4ba893 100644 --- a/lib/rbcodec/codecs/vorbis.c +++ b/lib/rbcodec/codecs/vorbis.c | |||
@@ -28,7 +28,7 @@ | |||
28 | 28 | ||
29 | CODEC_HEADER | 29 | CODEC_HEADER |
30 | 30 | ||
31 | #if defined(CPU_ARM) || defined(CPU_COLDFIRE) || defined(CPU_MIPS) | 31 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
32 | #include <setjmp.h> | 32 | #include <setjmp.h> |
33 | jmp_buf rb_jump_buf; | 33 | jmp_buf rb_jump_buf; |
34 | #endif | 34 | #endif |
@@ -135,7 +135,7 @@ enum codec_status codec_run(void) | |||
135 | ogg_int64_t vf_pcmlengths[2]; | 135 | ogg_int64_t vf_pcmlengths[2]; |
136 | intptr_t param; | 136 | intptr_t param; |
137 | 137 | ||
138 | #if defined(CPU_ARM) || defined(CPU_COLDFIRE) || defined(CPU_MIPS) | 138 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
139 | if (setjmp(rb_jump_buf) != 0) { | 139 | if (setjmp(rb_jump_buf) != 0) { |
140 | /* malloc failed; finish with this track */ | 140 | /* malloc failed; finish with this track */ |
141 | goto done; | 141 | goto done; |
@@ -153,7 +153,7 @@ enum codec_status codec_run(void) | |||
153 | 153 | ||
154 | /* Open a non-seekable stream */ | 154 | /* Open a non-seekable stream */ |
155 | error = ov_open_callbacks(ci, &vf, NULL, 0, callbacks); | 155 | error = ov_open_callbacks(ci, &vf, NULL, 0, callbacks); |
156 | 156 | ||
157 | /* If the non-seekable open was successful, we need to supply the missing | 157 | /* If the non-seekable open was successful, we need to supply the missing |
158 | * data to make it seekable. This is a hack, but it's reasonable since we | 158 | * data to make it seekable. This is a hack, but it's reasonable since we |
159 | * don't want to run the whole file through the buffer before we start | 159 | * don't want to run the whole file through the buffer before we start |