From f436476f9f0eeae4640197866ea5b5fa068df7e9 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Fri, 18 Feb 2005 11:56:55 +0000 Subject: Call button_clear_queue() before we start decoding - otherwise "open with" exited immediately git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6000 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/flac2wav.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/plugins/flac2wav.c b/apps/plugins/flac2wav.c index 6fa7940535..b9207eeafe 100644 --- a/apps/plugins/flac2wav.c +++ b/apps/plugins/flac2wav.c @@ -204,6 +204,8 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file) file_info.frames_decoded=0; file_info.start_tick=*(rb->current_tick); + rb->button_clear_queue(); + while (FLAC__seekable_stream_decoder_get_state(flacDecoder)!=2) { FLAC__seekable_stream_decoder_process_single(flacDecoder); file_info.frames_decoded++; -- cgit v1.2.3