Bug 1743834 - Assert the media clock monotonicity with MOZ_ASSERT. r=alwu
authorPaul Adenot <paul@paul.cx>
Tue, 24 May 2022 13:09:08 +0000
changeset 618734 1f8a39ab7f1c10b1a267fb228cc9426f292bcc72
parent 618733 55b1957af2162f94d1dcfbf882da7d7b9499ca19
child 618735 505d7df63978a0efa7d64c959d57cdafd1f1419f
push id163385
push userpadenot@mozilla.com
push dateTue, 24 May 2022 13:12:53 +0000
treeherderautoland@3774e6ab3869 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersalwu
bugs1743834
milestone102.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1743834 - Assert the media clock monotonicity with MOZ_ASSERT. r=alwu Differential Revision: https://phabricator.services.mozilla.com/D143823
dom/media/MediaDecoderStateMachine.cpp
--- a/dom/media/MediaDecoderStateMachine.cpp
+++ b/dom/media/MediaDecoderStateMachine.cpp
@@ -3609,17 +3609,17 @@ void MediaDecoderStateMachine::ResetDeco
 
   mReader->ResetDecode(aTracks);
 }
 
 media::TimeUnit MediaDecoderStateMachine::GetClock(
     TimeStamp* aTimeStamp) const {
   MOZ_ASSERT(OnTaskQueue());
   auto clockTime = mMediaSink->GetPosition(aTimeStamp);
-  NS_ASSERTION(GetMediaTime() <= clockTime, "Clock should go forwards.");
+  MOZ_ASSERT(GetMediaTime() <= clockTime, "Clock should go forwards.");
   return clockTime;
 }
 
 void MediaDecoderStateMachine::UpdatePlaybackPositionPeriodically() {
   MOZ_ASSERT(OnTaskQueue());
 
   if (!IsPlaying()) {
     return;