Skip to content

Commit 48b06a1

Browse files
committed
Only include opencvanalyzer sample if HAVE_OPENCV is set
1 parent 4782ff0 commit 48b06a1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/webrtc/samples/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@ if(HAVE_WEBRTC)
44
add_subdirectory(webrtcrecorder)
55
endif()
66
add_subdirectory(webrtccapturer)
7-
add_subdirectory(opencvanalyzer)
7+
8+
if(HAVE_OPENCV)
9+
add_subdirectory(opencvanalyzer)
10+
endif()
811
endif()

src/webrtc/samples/webrtccapturer/signaler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ void Signaler::onPeerDiconnected(const smpl::Peer& peer)
229229
void Signaler::onClientStateChange(void* sender, sockio::ClientState& state,
230230
const sockio::ClientState& oldState)
231231
{
232-
LDebug("Client state changed from " << oldState << " to ", state)
232+
LDebug("Client state changed from ", oldState, " to ", state)
233233

234234
switch (state.id()) {
235235
case sockio::ClientState::Connecting:

0 commit comments

Comments
 (0)