Fix build without RTSP

This commit is contained in:
Isaac Connor
2021-01-27 10:50:07 -05:00
parent ef3440e5b8
commit f3ea237af1
9 changed files with 33 additions and 8 deletions

View File

@@ -6,6 +6,9 @@
**
** -------------------------------------------------------------------------*/
#include "zm.h"
#if HAVE_RTSP_SERVER
#include <sstream>
#include <iomanip>
@@ -13,7 +16,6 @@
#include <Base64.hh>
#include "zm_rtsp_server_adts_source.h"
#if HAVE_RTSP_SERVER
static unsigned const samplingFrequencyTable[16] = {
96000, 88200, 64000, 48000,

View File

@@ -9,6 +9,9 @@
**
** -------------------------------------------------------------------------*/
#include "zm.h"
#if HAVE_RTSP_SERVER
#ifndef ADTS_ZoneMinder_DEVICE_SOURCE
#define ADTS_ZoneMinder_DEVICE_SOURCE
@@ -65,3 +68,4 @@ class ADTS_ZoneMinderDeviceSource : public ZoneMinderDeviceSource {
int channels;
};
#endif
#endif

View File

@@ -6,6 +6,9 @@
**
** -------------------------------------------------------------------------*/
#include "zm.h"
#if HAVE_RTSP_SERVER
#ifndef DEVICE_SOURCE
#define DEVICE_SOURCE
@@ -76,3 +79,4 @@ class ZoneMinderDeviceSource: public FramedSource {
};
#endif
#endif

View File

@@ -1,7 +1,11 @@
#pragma once
#include "zm_logger.h"
#include "zm.h"
#if HAVE_RTSP_SERVER
#include <sys/time.h>
#include <string.h>
// ---------------------------------
// Captured frame
// ---------------------------------
@@ -56,3 +60,4 @@ class NAL_Frame {
private:
int m_ref_count;
};
#endif

View File

@@ -6,6 +6,10 @@
**
** -------------------------------------------------------------------------*/
#include "zm.h"
#if HAVE_RTSP_SERVER
#include <sstream>
#include <iomanip>
@@ -13,7 +17,6 @@
#include <Base64.hh>
#include "zm_rtsp_server_h264_device_source.h"
#if HAVE_RTSP_SERVER
// ---------------------------------
// H264 ZoneMinder FramedSource

View File

@@ -4,14 +4,15 @@
**
** -------------------------------------------------------------------------*/
#include "zm.h"
#if HAVE_RTSP_SERVER
#include <sstream>
#include "zm_rtsp_server_server_media_subsession.h"
#include "zm_rtsp_server_device_source.h"
#include "zm_rtsp_server_adts_source.h"
#if HAVE_RTSP_SERVER
// ---------------------------------
// BaseServerMediaSubsession
// ---------------------------------

View File

@@ -9,6 +9,10 @@
#pragma once
#include "zm.h"
#if HAVE_RTSP_SERVER
#include <sys/stat.h>
#include <string>
@@ -44,3 +48,4 @@ class BaseServerMediaSubsession {
protected:
StreamReplicator* m_replicator;
};
#endif

View File

@@ -1,4 +1,7 @@
#include "zm.h"
#if HAVE_RTSP_SERVER
#include "zm_rtsp_server_thread.h"
#include "zm_rtsp_server_device_source.h"
#include "zm_rtsp_server_h264_device_source.h"
@@ -6,8 +9,6 @@
#include "zm_rtsp_server_unicast_server_media_subsession.h"
#include <StreamReplicator.hh>
#if HAVE_RTSP_SERVER
RTSPServerThread::RTSPServerThread(Monitor *p_monitor) :
monitor(p_monitor),
terminate(0)

View File

@@ -7,10 +7,10 @@
**
** -------------------------------------------------------------------------*/
#include "zm.h"
#if HAVE_RTSP_SERVER
#include "zm_rtsp_server_unicast_server_media_subsession.h"
#include "zm_rtsp_server_device_source.h"
#if HAVE_RTSP_SERVER
// -----------------------------------------
// ServerMediaSubsession for Unicast