0

[Fuchsia] Fix crash on DecryptingDemuxerStream shutdown

DecryptingDemuxerStream calls Decryptor::CancelDecrypt(), which was
NOTREACHED(). Removed the NOTREACHED() statement. The method is no-op
since there is nothing to cancel.

Bug: 380906088
Change-Id: I5c7e4db0de805a960ee939e22b395d33f9baf304
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6052417
Auto-Submit: Sergey Ulanov <sergeyu@chromium.org>
Commit-Queue: Dale Curtis <dalecurtis@chromium.org>
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Commit-Queue: Sergey Ulanov <sergeyu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1388538}
This commit is contained in:
Sergey Ulanov
2024-11-26 23:53:33 +00:00
committed by Chromium LUCI CQ
parent 8c7953c6ba
commit a2e85fc373

@ -29,7 +29,9 @@ void FuchsiaDecryptor::Decrypt(StreamType stream_type,
}
void FuchsiaDecryptor::CancelDecrypt(StreamType stream_type) {
NOTREACHED();
// There is nothing to cancel because `Decrypt()` is not expected to be
// called directly. This method may still be called by
// the `DecryptingDemuxerStream` destructor.
}
void FuchsiaDecryptor::InitializeAudioDecoder(const AudioDecoderConfig& config,