Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Feqzz/qZoom-Client
Browse files Browse the repository at this point in the history
  • Loading branch information
Feqzz committed Aug 4, 2020
2 parents 2ccf968 + 6290069 commit 7011577
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions handlers/udpsockethandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ void UdpSocketHandler::readPendingDatagrams()
mInputStreamHandler->mAudioMutexVector[index]->lock();
mInputStreamHandler->mAudioBufferVector[index]->append(data);
mInputStreamHandler->mAudioMutexVector[index]->unlock();
if(!mInputStreamHandler->mAudioPlaybackStartedVector[index] && mInputStreamHandler->mAudioBufferVector[index]->size() >= mBufferSize)
if(!mInputStreamHandler->mAudioPlaybackStartedVector[index] && mInputStreamHandler->mAudioBufferVector[index]->size() >= mBufferSize/8)
{
*mInputStreamHandler->mAudioFutures.at(index) = QtConcurrent::run(mInputStreamHandler->mAudioPlaybackHandlerVector[index], &AudioPlaybackHandler::start);
qDebug() << "Starting AudioPlaybackHandler for streamId: " << streamId;
mInputStreamHandler->mAudioPlaybackStartedVector[index] = true;
}
// qDebug() << "audio buffer size " << mAudioBufferVector[index].size() << "after signal: " << signalCount;
//qDebug() << "audio buffer size " << mInputStreamHandler->mAudioBufferVector[index]->size() << "after signal: " << signalCount;
}
else if (audioOrVideoInt == 1)
{
Expand All @@ -106,7 +106,7 @@ void UdpSocketHandler::readPendingDatagrams()
qDebug() << "STARTING VIDEOPLAYBACKHANDLER!!!";
mInputStreamHandler->mVideoPlaybackStartedVector[index] = true;
}
qDebug() << "video buffer size " << mInputStreamHandler->mVideoBufferVector[index]->size() << "after signal: " << signalCount;
//qDebug() << "video buffer size " << mInputStreamHandler->mVideoBufferVector[index]->size() << "after signal: " << signalCount;
}
else
{
Expand Down

0 comments on commit 7011577

Please sign in to comment.