зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1765554 - Relax clock monotonicity assertion on Windows, for investigation. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D144195
This commit is contained in:
Родитель
dab92f728e
Коммит
2efd70ad47
|
@ -3614,7 +3614,12 @@ media::TimeUnit MediaDecoderStateMachine::GetClock(
|
||||||
TimeStamp* aTimeStamp) const {
|
TimeStamp* aTimeStamp) const {
|
||||||
MOZ_ASSERT(OnTaskQueue());
|
MOZ_ASSERT(OnTaskQueue());
|
||||||
auto clockTime = mMediaSink->GetPosition(aTimeStamp);
|
auto clockTime = mMediaSink->GetPosition(aTimeStamp);
|
||||||
|
// This fails on Windows some times, see 1765563
|
||||||
|
#if defined(XP_WIN)
|
||||||
|
NS_ASSERTION(GetMediaTime() <= clockTime, "Clock should go forwards.");
|
||||||
|
#else
|
||||||
MOZ_ASSERT(GetMediaTime() <= clockTime, "Clock should go forwards.");
|
MOZ_ASSERT(GetMediaTime() <= clockTime, "Clock should go forwards.");
|
||||||
|
#endif
|
||||||
return clockTime;
|
return clockTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче