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:
parent
982ab9e496
commit
f0060718de
@ -314,6 +314,11 @@ MPDOpusDecoder::HandleAudio(const ogg_packet &packet)
|
||||
0);
|
||||
if (cmd != DecoderCommand::NONE)
|
||||
return cmd;
|
||||
|
||||
if (packet.granulepos > 0)
|
||||
decoder_timestamp(decoder,
|
||||
double(packet.granulepos)
|
||||
/ opus_sample_rate);
|
||||
}
|
||||
|
||||
return DecoderCommand::NONE;
|
||||
|
Loading…
Reference in New Issue
Block a user