Skip to content

Commit b14869e

Browse files
committed
rtsp: disable RTSP support if using old livemedia version
1 parent 142de03 commit b14869e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ GIT_REVISION ?= $(shell git rev-parse --short HEAD)
99
CFLAGS := -Werror -Wall -g -I$(CURDIR) -D_GNU_SOURCE
1010
LDLIBS := -lpthread -lstdc++
1111

12+
# Print #warnings
13+
CFLAGS += -Wno-error=cpp
14+
1215
# libdatachannel deprecations on bookworm
1316
# error: 'HMAC_Init_ex' is deprecated: Since OpenSSL 3.0
1417
CFLAGS += -Wno-error=deprecated-declarations

output/rtsp/rtsp.cc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ extern "C" {
1313

1414
};
1515

16+
#ifdef USE_RTSP
17+
#if !__has_include(<RTSPServerSupportingHTTPStreaming.hh>)
18+
#undef USE_RTSP
19+
#warning "Missing RTSPServerSupportingHTTPStreaming.hh header. The RTSP support will be missing."
20+
#endif // RTSPServerSupportingHTTPStreaming.hh
21+
#endif // USE_RTSP
22+
1623
#ifdef USE_RTSP
1724

1825
#include <string>

0 commit comments

Comments
 (0)