From 33f934b9abf579ee04e2fe427a0a8f2e7a06a853 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 26 Jan 2021 14:14:29 -0500 Subject: [PATCH] Use config.min_rtsp_port instead of hard coded base port --- src/zm_rtsp_server_thread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zm_rtsp_server_thread.cpp b/src/zm_rtsp_server_thread.cpp index 150cda484..6f3c433c9 100644 --- a/src/zm_rtsp_server_thread.cpp +++ b/src/zm_rtsp_server_thread.cpp @@ -4,9 +4,9 @@ #include "zm_rtsp_server_adts_source.h" #include "zm_rtsp_server_unicast_server_media_subsession.h" #include +#include "zm.h" #if HAVE_RTSP_SERVER -#define ZM_RTSP_SERVER_BASE 10000 RTSPServerThread::RTSPServerThread(Monitor *p_monitor) : monitor(p_monitor), @@ -23,7 +23,7 @@ RTSPServerThread::RTSPServerThread(Monitor *p_monitor) : //authDB = new UserAuthenticationDatabase("ZoneMinder"); //authDB->addUserRecord("username1", "password1"); // replace these with real strings - portNumBits rtspServerPortNum = ZM_RTSP_SERVER_BASE + monitor->Id(); + portNumBits rtspServerPortNum = config.min_rtsp_port + monitor->Id(); rtspServer = RTSPServer::createNew(*env, rtspServerPortNum, authDB); if ( rtspServer == nullptr ) {