decoder/opus: provide time stamps

Call decoder_timestamp().  This is not necessary currently, but will
be as soon as we implement seeking.
This commit is contained in:
Max Kellermann 2013-10-24 22:07:35 +02:00
parent 982ab9e496
commit f0060718de

View File

@ -314,6 +314,11 @@ MPDOpusDecoder::HandleAudio(const ogg_packet &packet)
0); 0);
if (cmd != DecoderCommand::NONE) if (cmd != DecoderCommand::NONE)
return cmd; return cmd;
if (packet.granulepos > 0)
decoder_timestamp(decoder,
double(packet.granulepos)
/ opus_sample_rate);
} }
return DecoderCommand::NONE; return DecoderCommand::NONE;