(Windows) Fixed an MSVC compiler warning.

This commit is contained in:
Leon Styhre 2021-05-29 11:48:33 +02:00
parent 5ee28ed8ec
commit 653cf4c46f

View file

@ -215,7 +215,8 @@ void VideoFFmpegComponent::updatePlayer()
// Output any audio that has been added by the processing thread.
mAudioMutex.lock();
if (mOutputAudio.size()) {
AudioManager::getInstance()->processStream(&mOutputAudio.at(0), mOutputAudio.size());
AudioManager::getInstance()->processStream(&mOutputAudio.at(0),
static_cast<unsigned int>(mOutputAudio.size()));
mOutputAudio.clear();
}
mAudioMutex.unlock();