Commit 2052a029 authored by Max Kellermann's avatar Max Kellermann

decoder/vorbis: use integer seek times

parent c6aafff7
...@@ -258,8 +258,8 @@ vorbis_stream_decode(Decoder &decoder, ...@@ -258,8 +258,8 @@ vorbis_stream_decode(Decoder &decoder,
DecoderCommand cmd = decoder_get_command(decoder); DecoderCommand cmd = decoder_get_command(decoder);
do { do {
if (cmd == DecoderCommand::SEEK) { if (cmd == DecoderCommand::SEEK) {
double seek_where = decoder_seek_where(decoder); auto seek_where = decoder_seek_where_frame(decoder);
if (0 == ov_time_seek_page(&vf, seek_where)) { if (0 == ov_pcm_seek_page(&vf, seek_where)) {
decoder_command_finished(decoder); decoder_command_finished(decoder);
} else } else
decoder_seek_error(decoder); decoder_seek_error(decoder);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment