summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-26 11:38:39 +0200
committerMax Kellermann <max@duempel.org>2014-08-26 11:38:39 +0200
commit2052a029ee0e6f75c4b7248288940248306694f2 (patch)
treeb0289505f4354336e303ef0b34f2e800ef9063a6
parentc6aafff701ef26a3f87c09d5cadfa93b33eeb3e8 (diff)
decoder/vorbis: use integer seek times
-rw-r--r--src/decoder/plugins/VorbisDecoderPlugin.cxx4
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);