diff --git a/src/WebRTCSession.cpp b/src/WebRTCSession.cpp index afa9fc22..b4cdeced 100644 --- a/src/WebRTCSession.cpp +++ b/src/WebRTCSession.cpp @@ -21,7 +21,7 @@ WebRTCSession::WebRTCSession() { qRegisterMetaType(); connect(this, &WebRTCSession::stateChanged, this, &WebRTCSession::setState); -#if GST_CHECK_VERSION(1, 18, 0) +#if defined (GSTREAMER_AVAILABLE) && GST_CHECK_VERSION(1, 18, 0) init(); #endif }