diff options
author | Max Kellermann <max@duempel.org> | 2012-09-25 21:20:01 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-09-25 21:26:27 +0200 |
commit | 133e4d5c51428c3e9999e3778a1e4d5786d99d55 (patch) | |
tree | 6cf42b08d0fa14dafc28e74d24161a1ef70e5fe7 /src/decoder/vorbis_decoder_plugin.c | |
parent | fd56461d5fac2f3ab110967222a52315be8b135e (diff) | |
download | mpd-133e4d5c51428c3e9999e3778a1e4d5786d99d55.tar.gz mpd-133e4d5c51428c3e9999e3778a1e4d5786d99d55.tar.xz mpd-133e4d5c51428c3e9999e3778a1e4d5786d99d55.zip |
decoder/vorbis: improved support for initial seek
Call decoder_get_command() before doing anything else.
Diffstat (limited to '')
-rw-r--r-- | src/decoder/vorbis_decoder_plugin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder/vorbis_decoder_plugin.c b/src/decoder/vorbis_decoder_plugin.c index e99efae61..86993047c 100644 --- a/src/decoder/vorbis_decoder_plugin.c +++ b/src/decoder/vorbis_decoder_plugin.c @@ -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; |