diff options
author | Dave Chapman <dave@dchapman.com> | 2005-02-18 11:56:55 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2005-02-18 11:56:55 +0000 |
commit | f436476f9f0eeae4640197866ea5b5fa068df7e9 (patch) | |
tree | 4f56123e5ddfa68458fb06de6c4faa4894fdf830 /apps/plugins | |
parent | 0a5b4fd7e423527dba1d7c8031d267bdbb6f1aa9 (diff) | |
download | rockbox-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
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/flac2wav.c | 2 |
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) | |||
204 | 204 | ||
205 | file_info.frames_decoded=0; | 205 | file_info.frames_decoded=0; |
206 | file_info.start_tick=*(rb->current_tick); | 206 | file_info.start_tick=*(rb->current_tick); |
207 | rb->button_clear_queue(); | ||
208 | |||
207 | while (FLAC__seekable_stream_decoder_get_state(flacDecoder)!=2) { | 209 | while (FLAC__seekable_stream_decoder_get_state(flacDecoder)!=2) { |
208 | FLAC__seekable_stream_decoder_process_single(flacDecoder); | 210 | FLAC__seekable_stream_decoder_process_single(flacDecoder); |
209 | file_info.frames_decoded++; | 211 | file_info.frames_decoded++; |