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 <yanqing.lu@samsung.com
Signed-off-by: zhishun.zhou <zhishun.zhou@samsung.com>
}
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;