import from UXP: Issue #2953 - Part 3: Assert that no error can occur while an internal seek is pending. (5491326f)

This commit is contained in:
2026-02-20 09:20:52 +08:00
parent fd74669795
commit de4f426bd0
+3
View File
@@ -1642,6 +1642,9 @@ MediaFormatReader::Update(TrackType aTrack)
if (decoder.mError && !decoder.HasFatalError()) {
decoder.mDecodePending = false;
MOZ_RELEASE_ASSERT(!decoder.HasInternalSeekPending(),
"No error can occur while an internal seek is pending");
nsCString error;
bool decodingFailedWithHardware =
decoder.mError.ref() == NS_ERROR_DOM_MEDIA_DECODE_ERR &&