summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-02-18 11:56:55 +0000
committerDave Chapman <dave@dchapman.com>2005-02-18 11:56:55 +0000
commitf436476f9f0eeae4640197866ea5b5fa068df7e9 (patch)
tree4f56123e5ddfa68458fb06de6c4faa4894fdf830
parent0a5b4fd7e423527dba1d7c8031d267bdbb6f1aa9 (diff)
downloadrockbox-f436476f9f0eeae4640197866ea5b5fa068df7e9.tar.gz
rockbox-f436476f9f0eeae4640197866ea5b5fa068df7e9.zip
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
-rw-r--r--apps/plugins/flac2wav.c2
1 files changed, 2 insertions, 0 deletions
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++;