Skip to content

Commit

Permalink
decoder/vorbis: use integer seek times
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Aug 26, 2014
1 parent c6aafff commit 2052a02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/decoder/plugins/VorbisDecoderPlugin.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2052a02

Please sign in to comment.