From 9cb1ebd0daea88c647fc202ae088da39de9cdba7 Mon Sep 17 00:00:00 2001 From: f4exb Date: Tue, 14 Mar 2017 01:01:02 +0100 Subject: [PATCH] ATV Modulator: hideous hack for webcams under Windows --- plugins/channeltx/modatv/atvmod.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/plugins/channeltx/modatv/atvmod.cpp b/plugins/channeltx/modatv/atvmod.cpp index 71957e36f..92c5109c9 100644 --- a/plugins/channeltx/modatv/atvmod.cpp +++ b/plugins/channeltx/modatv/atvmod.cpp @@ -330,6 +330,22 @@ void ATVMod::pullVideo(Real& sample) 2); // close splash screen on GUI side 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;