From e4a84207a45be624b3288f8a49c8903757de689d Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Wed, 2 Jul 2025 20:28:41 +0200 Subject: [PATCH] rtsp: disable RTSP support if using old livemedia version --- Makefile | 3 +++ output/rtsp/rtsp.cc | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 612627c..2400dd1 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/output/rtsp/rtsp.cc b/output/rtsp/rtsp.cc index 94f075f..430247e 100644 --- a/output/rtsp/rtsp.cc +++ b/output/rtsp/rtsp.cc @@ -13,6 +13,13 @@ extern "C" { }; +#ifdef USE_RTSP +#if !__has_include() +#undef USE_RTSP +#warning "Missing RTSPServerSupportingHTTPStreaming.hh header. The RTSP support will be missing." +#endif // RTSPServerSupportingHTTPStreaming.hh +#endif // USE_RTSP + #ifdef USE_RTSP #include