rtsp: disable RTSP support if using old livemedia version

This commit is contained in:
Kamil Trzcinski 2025-07-02 20:28:41 +02:00 committed by Kamil Trzciński
parent 142de03770
commit e4a84207a4
2 changed files with 10 additions and 0 deletions

View File

@ -9,6 +9,9 @@ GIT_REVISION ?= $(shell git rev-parse --short HEAD)
CFLAGS := -Werror -Wall -g -I$(CURDIR) -D_GNU_SOURCE
LDLIBS := -lpthread -lstdc++
# Print #warnings
CFLAGS += -Wno-error=cpp
# libdatachannel deprecations on bookworm
# error: 'HMAC_Init_ex' is deprecated: Since OpenSSL 3.0
CFLAGS += -Wno-error=deprecated-declarations

View File

@ -13,6 +13,13 @@ extern "C" {
};
#ifdef USE_RTSP
#if !__has_include(<RTSPServerSupportingHTTPStreaming.hh>)
#undef USE_RTSP
#warning "Missing RTSPServerSupportingHTTPStreaming.hh header. The RTSP support will be missing."
#endif // RTSPServerSupportingHTTPStreaming.hh
#endif // USE_RTSP
#ifdef USE_RTSP
#include <string>