This commit is contained in:
Dmytro Bogovych 2021-11-03 15:26:08 +02:00
parent 7efef755fa
commit 4c1241cd1e
1 changed files with 5 additions and 1 deletions

View File

@ -216,7 +216,11 @@ RtpBuffer::FetchResult RtpBuffer::fetch(ResultList& rl)
result = FetchResult::NoPacket; result = FetchResult::NoPacket;
else else
{ {
if (mFetchedPacket) bool is_fetched_packet = mFetchedPacket.get() != nullptr;
if (is_fetched_packet)
is_fetched_packet &= mFetchedPacket->rtp().get() != nullptr;
if (is_fetched_packet)
{ {
if (mPacketList.empty()) if (mPacketList.empty())
{ {