From c7b8d7bda908fd5fa686c9f0d3485dcf188facce Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 22 Jan 2021 19:26:00 -0500 Subject: [PATCH] get rid of useThread. We will always have a thread --- src/zm_rtsp_server_device_source.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/zm_rtsp_server_device_source.h b/src/zm_rtsp_server_device_source.h index 02605a5a2..3c445806d 100644 --- a/src/zm_rtsp_server_device_source.h +++ b/src/zm_rtsp_server_device_source.h @@ -29,8 +29,10 @@ class ZoneMinderDeviceSource: public FramedSource { UsageEnvironment& env, Monitor* monitor, AVStream * stream, - unsigned int queueSize, - bool useThread); + unsigned int queueSize + ) { + return new ZoneMinderDeviceSource(env, monitor, stream, queueSize); + }; std::string getAuxLine() { return m_auxLine; }; int getWidth() { return m_monitor->Width(); }; int getHeight() { return m_monitor->Height(); }; @@ -56,7 +58,7 @@ class ZoneMinderDeviceSource: public FramedSource { // overide FramedSource virtual void doGetNextFrame(); virtual void doStopGettingFrames(); - virtual unsigned char *extractFrame(unsigned char *data, size_t& size, size_t& outsize) = 0; + virtual unsigned char *extractFrame(unsigned char *data, size_t& size, size_t& outsize); protected: std::list m_captureQueue;