mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
Bug 1207964 - Remove workaround from bug 1080461. r=jwwang
--HG-- extra : rebase_source : b7955be8bce9aebb82707cbf42d405a3c308fb7e
This commit is contained in:
parent
1c88c2730e
commit
6a3c5ff854
@ -1783,12 +1783,6 @@ int64_t MediaDecoderStateMachine::AudioDecodedUsecs()
|
||||
// already decoded and pushed to the hardware, plus the amount of audio
|
||||
// data waiting to be pushed to the hardware.
|
||||
int64_t pushed = mMediaSink->IsStarted() ? (AudioEndTime() - GetMediaTime()) : 0;
|
||||
|
||||
// Currently for real time streams, AudioQueue().Duration() produce
|
||||
// wrong values (Bug 1114434), so we use frame counts to calculate duration.
|
||||
if (IsRealTime()) {
|
||||
return pushed + FramesToUsecs(AudioQueue().FrameCount(), mInfo.mAudio.mRate).value();
|
||||
}
|
||||
return pushed + AudioQueue().Duration();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user