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
This commit is contained in:
Dave Chapman 2005-02-18 11:56:55 +00:00
parent 0a5b4fd7e4
commit f436476f9f

View file

@ -204,6 +204,8 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file)
file_info.frames_decoded=0; file_info.frames_decoded=0;
file_info.start_tick=*(rb->current_tick); file_info.start_tick=*(rb->current_tick);
rb->button_clear_queue();
while (FLAC__seekable_stream_decoder_get_state(flacDecoder)!=2) { while (FLAC__seekable_stream_decoder_get_state(flacDecoder)!=2) {
FLAC__seekable_stream_decoder_process_single(flacDecoder); FLAC__seekable_stream_decoder_process_single(flacDecoder);
file_info.frames_decoded++; file_info.frames_decoded++;