mirror of
https://github.com/andreili/camera-streamer.git
synced 2025-08-23 11:24:07 +02:00
rtsp: disable RTSP support if using old livemedia version
This commit is contained in:
parent
142de03770
commit
e4a84207a4
3
Makefile
3
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
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user