summaryrefslogtreecommitdiff
path: root/service/src/com/android/telephony
diff options
context:
space:
mode:
authorAvinash Malipatil <avinashmp@google.com>2023-03-15 09:58:54 +0000
committerAvinash Malipatil <avinashmp@google.com>2023-04-06 05:13:36 +0000
commite879f2a701a240142494f2a5d2c588a17caa47d6 (patch)
tree815bc6f942ed6cbac567f6d6c3cf4cdd3756e436 /service/src/com/android/telephony
parent7a5fc2963d77634dbc5ee736a386839f6268f057 (diff)
downloadImsMedia-e879f2a701a240142494f2a5d2c588a17caa47d6.tar.gz
Add unit test cases for RTCP decoder node.
Bug: 272299057 Test: atest ImsMediaNativeTests Change-Id: I90a8da2ef9677267148fb4f9667ed1856dbe872e
Diffstat (limited to 'service/src/com/android/telephony')
-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()