summaryrefslogtreecommitdiff
path: root/service/src/com/android/telephony/imsmedia/lib
diff options
context:
space:
mode:
authorAvinash Malipatil <avinashmp@google.com>2023-04-11 10:59:05 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2023-04-11 10:59:05 +0000
commit72f85a8083bf41291a3a6a7f2386415e5e24580b (patch)
tree9e5f496a62f1e8f965669a515da01a847aa3c04d /service/src/com/android/telephony/imsmedia/lib
parent92337d569130be377615fb8421adbced82f49811 (diff)
parente879f2a701a240142494f2a5d2c588a17caa47d6 (diff)
downloadImsMedia-72f85a8083bf41291a3a6a7f2386415e5e24580b.tar.gz
Merge "Add unit test cases for RTCP decoder node." into udc-dev
Diffstat (limited to 'service/src/com/android/telephony/imsmedia/lib')
-rw-r--r--service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/nodes/RtcpDecoderNode.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/nodes/RtcpDecoderNode.cpp b/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/nodes/RtcpDecoderNode.cpp
index e4c3363d..e104c2cb 100644
--- a/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/nodes/RtcpDecoderNode.cpp
+++ b/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/nodes/RtcpDecoderNode.cpp
@@ -88,7 +88,10 @@ void RtcpDecoderNode::OnDataFromFrontNode(ImsMediaSubType subtype, uint8_t* pDat
IMLOGD_PACKET6(IM_PACKET_LOG_RTCP,
"[OnMediaDataInd] media[%d] subtype[%d], Size[%d], TS[%u], Mark[%d], Seq[%d]",
mMediaType, subtype, nDataSize, nTimeStamp, bMark, nSeqNum);
- mRtpSession->ProcRtcpPacket(pData, nDataSize);
+ if (mRtpSession != nullptr)
+ {
+ mRtpSession->ProcRtcpPacket(pData, nDataSize);
+ }
}
bool RtcpDecoderNode::IsRunTime()