decoder/vorbis: use integer seek times

This commit is contained in:
Max Kellermann 2014-08-26 11:38:39 +02:00
parent c6aafff701
commit 2052a029ee

View File

@ -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);