Interleaved mode updatePacketList - just clear list if there are no streams. Fixes #195

This commit is contained in:
Srivats P 2016-09-21 20:26:08 +05:30
parent 08fc0a116f
commit 831b5c0916

View File

@ -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())