diff options
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/mpegplayer/mpegplayer.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/apps/plugins/mpegplayer/mpegplayer.c b/apps/plugins/mpegplayer/mpegplayer.c index a0659a9f0d..273e01b797 100644 --- a/apps/plugins/mpegplayer/mpegplayer.c +++ b/apps/plugins/mpegplayer/mpegplayer.c | |||
@@ -227,15 +227,10 @@ static inline bool str_have_msg(Stream *str) | |||
227 | /* Waits until a message is sent */ | 227 | /* Waits until a message is sent */ |
228 | static void str_wait_msg(Stream *str) | 228 | static void str_wait_msg(Stream *str) |
229 | { | 229 | { |
230 | /* NOTE: sleep(0) caused a prefectch abort at C0EDBABE on e200 - | ||
231 | will look into this oddness */ | ||
232 | #if 0 | ||
233 | int spin_count = 0; | 230 | int spin_count = 0; |
234 | #endif | ||
235 | 231 | ||
236 | while (str->have_msg == 0) | 232 | while (str->have_msg == 0) |
237 | { | 233 | { |
238 | #if 0 | ||
239 | if (spin_count < 100) | 234 | if (spin_count < 100) |
240 | { | 235 | { |
241 | rb->yield(); | 236 | rb->yield(); |
@@ -244,8 +239,6 @@ static void str_wait_msg(Stream *str) | |||
244 | } | 239 | } |
245 | 240 | ||
246 | rb->sleep(0); | 241 | rb->sleep(0); |
247 | #endif | ||
248 | rb->yield(); | ||
249 | } | 242 | } |
250 | } | 243 | } |
251 | 244 | ||
@@ -285,12 +278,7 @@ static void str_reply_msg(Stream *str, int reply) | |||
285 | /* Sends a message to a stream and waits for a reply */ | 278 | /* Sends a message to a stream and waits for a reply */ |
286 | static intptr_t str_send_msg(Stream *str, int id, intptr_t data) | 279 | static intptr_t str_send_msg(Stream *str, int id, intptr_t data) |
287 | { | 280 | { |
288 | /* NOTE: sleep(0) caused a prefectch abort at C0EDBABE on e200 - | ||
289 | will look into this oddness */ | ||
290 | #if 0 | ||
291 | int spin_count = 0; | 281 | int spin_count = 0; |
292 | #endif | ||
293 | |||
294 | intptr_t reply; | 282 | intptr_t reply; |
295 | 283 | ||
296 | #if 0 | 284 | #if 0 |
@@ -309,7 +297,6 @@ static intptr_t str_send_msg(Stream *str, int id, intptr_t data) | |||
309 | 297 | ||
310 | while (str->replied == 0 && str->status != STREAM_TERMINATED) | 298 | while (str->replied == 0 && str->status != STREAM_TERMINATED) |
311 | { | 299 | { |
312 | #if 0 | ||
313 | if (spin_count < 100) | 300 | if (spin_count < 100) |
314 | { | 301 | { |
315 | rb->yield(); | 302 | rb->yield(); |
@@ -318,8 +305,6 @@ static intptr_t str_send_msg(Stream *str, int id, intptr_t data) | |||
318 | } | 305 | } |
319 | 306 | ||
320 | rb->sleep(0); | 307 | rb->sleep(0); |
321 | #endif | ||
322 | rb->yield(); | ||
323 | } | 308 | } |
324 | 309 | ||
325 | reply = str->reply; | 310 | reply = str->reply; |
@@ -1926,6 +1911,8 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
1926 | 1911 | ||
1927 | init_stream_lock(); | 1912 | init_stream_lock(); |
1928 | 1913 | ||
1914 | flush_icache(); | ||
1915 | |||
1929 | /* We put the video thread on the second processor for multi-core targets. */ | 1916 | /* We put the video thread on the second processor for multi-core targets. */ |
1930 | if ((video_str.thread = rb->create_thread(video_thread, | 1917 | if ((video_str.thread = rb->create_thread(video_thread, |
1931 | (uint8_t*)video_stack,VIDEO_STACKSIZE,"mpgvideo" IF_PRIO(,PRIORITY_PLAYBACK) | 1918 | (uint8_t*)video_stack,VIDEO_STACKSIZE,"mpgvideo" IF_PRIO(,PRIORITY_PLAYBACK) |