diff options
author | Max Kellermann <max@duempel.org> | 2014-08-26 11:38:39 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-26 11:38:39 +0200 |
commit | 2052a029ee0e6f75c4b7248288940248306694f2 (patch) | |
tree | b0289505f4354336e303ef0b34f2e800ef9063a6 /src/decoder | |
parent | c6aafff701ef26a3f87c09d5cadfa93b33eeb3e8 (diff) | |
download | mpd-2052a029ee0e6f75c4b7248288940248306694f2.tar.gz mpd-2052a029ee0e6f75c4b7248288940248306694f2.tar.xz mpd-2052a029ee0e6f75c4b7248288940248306694f2.zip |
decoder/vorbis: use integer seek times
Diffstat (limited to 'src/decoder')
-rw-r--r-- | src/decoder/plugins/VorbisDecoderPlugin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/plugins/VorbisDecoderPlugin.cxx b/src/decoder/plugins/VorbisDecoderPlugin.cxx index 64a744d25..e740cede6 100644 --- a/src/decoder/plugins/VorbisDecoderPlugin.cxx +++ b/src/decoder/plugins/VorbisDecoderPlugin.cxx @@ -258,8 +258,8 @@ vorbis_stream_decode(Decoder &decoder, DecoderCommand cmd = decoder_get_command(decoder); do { if (cmd == DecoderCommand::SEEK) { - double seek_where = decoder_seek_where(decoder); - if (0 == ov_time_seek_page(&vf, seek_where)) { + auto seek_where = decoder_seek_where_frame(decoder); + if (0 == ov_pcm_seek_page(&vf, seek_where)) { decoder_command_finished(decoder); } else decoder_seek_error(decoder); |