Disable call support, when GStreamer is unavailable

Integrating that in our CI is currently a bit hard, so disable it for
now, if GStreamer isn't found. Just make sure to build against GStreamer
for call support!
This commit is contained in:
Nicolas Werner 2020-08-14 01:03:27 +02:00
parent 29cb065102
commit f157602a52
4 changed files with 83 additions and 5 deletions

View file

@ -201,9 +201,13 @@ CallManager::onActiveCall()
void
CallManager::syncEvent(const mtx::events::collections::TimelineEvents &event)
{
#ifdef GSTREAMER_AVAILABLE
if (handleEvent_<CallInvite>(event) || handleEvent_<CallCandidates>(event) ||
handleEvent_<CallAnswer>(event) || handleEvent_<CallHangUp>(event))
return;
#else
(void)event;
#endif
}
template<typename T>