From 831b5c0916ac3e36b6f636878cb6e4bd69f55b48 Mon Sep 17 00:00:00 2001 From: Srivats P Date: Wed, 21 Sep 2016 20:26:08 +0530 Subject: [PATCH] Interleaved mode updatePacketList - just clear list if there are no streams. Fixes #195 --- server/abstractport.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/server/abstractport.cpp b/server/abstractport.cpp index 0a97ff9..5d36895 100644 --- a/server/abstractport.cpp +++ b/server/abstractport.cpp @@ -377,11 +377,16 @@ void AbstractPort::updatePacketListInterleaved() qDebug("In %s", __FUNCTION__); + clearPacketList(); + if (streamList_.size() == 0) + { + isSendQueueDirty_ = false; + return; + } + // First sort the streams by ordinalValue qSort(streamList_.begin(), streamList_.end(), StreamBase::StreamLessThan); - clearPacketList(); - for (int i = 0; i < streamList_.size(); i++) { if (!streamList_[i]->isEnabled())