decoder/vorbis: improved support for initial seek

Call decoder_get_command() before doing anything else.
This commit is contained in:
Max Kellermann 2012-09-25 21:20:01 +02:00
parent fd56461d5f
commit 133e4d5c51
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ vorbis_stream_decode(struct decoder *decoder,
decoder_initialized(decoder, &audio_format, vis.seekable, total_time);
enum decoder_command cmd = DECODE_COMMAND_NONE;
enum decoder_command cmd = decoder_get_command(decoder);
char chunk[OGG_CHUNK_SIZE];
int prev_section = -1;
long bitRate = 0;