1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-05-24 11:12:27 -04:00

ATV Modulator: hideous hack for webcams under Windows

This commit is contained in:
f4exb 2017-03-14 01:01:02 +01:00
parent a88bc52530
commit 9cb1ebd0da

View File

@ -330,6 +330,22 @@ void ATVMod::pullVideo(Real& sample)
2); // close splash screen on GUI side 2); // close splash screen on GUI side
getOutputMessageQueue()->push(report); getOutputMessageQueue()->push(report);
} }
else if (camera.m_videoFPS == 0.0f) // Hideous hack for windows
{
camera.m_videoFPS = 5.0f;
camera.m_videoFPSq = camera.m_videoFPS / m_fps;
camera.m_videoFPSCount = camera.m_videoFPSq;
camera.m_videoPrevFPSCount = 0;
MsgReportCameraData *report;
report = MsgReportCameraData::create(
camera.m_cameraNumber,
camera.m_videoFPS,
camera.m_videoWidth,
camera.m_videoHeight,
0);
getOutputMessageQueue()->push(report);
}
int fpsIncrement = (int) camera.m_videoFPSCount - camera.m_videoPrevFPSCount; int fpsIncrement = (int) camera.m_videoFPSCount - camera.m_videoPrevFPSCount;