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:
Paul Adenot 2022-05-24 13:09:09 +00:00
Родитель dab92f728e
Коммит 2efd70ad47
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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;
} }