From: zhishun.zhou Date: Wed, 27 Mar 2024 10:04:40 +0000 (+0800) Subject: [M120 Migration][SVACE] Check stream before using X-Git-Tag: submit/tizen/20240328.160015~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e27d7df7ea997d304b29a0512768088cc426b016;p=platform%2Fframework%2Fweb%2Fchromium-efl.git [M120 Migration][SVACE] Check stream before using Several issues reported crash as null check missing Add stream check before using Patch from: https://review.tizen.org/gerrit/#/c/301574/ Change-Id: I83328ff8bc530b15cd43aaa41ac477c553132bec Signed-off-by: yanqing.lu --- diff --git a/media/filters/decrypting_demuxer_stream.cc b/media/filters/decrypting_demuxer_stream.cc index 493b17e..14ab249 100644 --- a/media/filters/decrypting_demuxer_stream.cc +++ b/media/filters/decrypting_demuxer_stream.cc @@ -423,6 +423,11 @@ void DecryptingDemuxerStream::DoReset() { } Decryptor::StreamType DecryptingDemuxerStream::GetDecryptorStreamType() const { + if (!demuxer_stream_) { + LOG(INFO) << "demuxer_stream is nullptr!"; + return Decryptor::kStreamTypeMax; + } + if (demuxer_stream_->type() == AUDIO) return Decryptor::kAudio;