From 2def10156de58f44f4a96a5c0b974e846a63f728 Mon Sep 17 00:00:00 2001 From: Alexandre Lision <alexandre.lision@savoirfairelinux.com> Date: Mon, 14 Dec 2015 17:11:46 -0500 Subject: [PATCH] build: fix --disable-video compilation Change-Id: Ib0306f783a597e5cd1d6abfd6bfd75f5f636e73d Tuleap: #198 --- src/sip/sipcall.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sip/sipcall.cpp b/src/sip/sipcall.cpp index 906adef3c3..1d2cfa8ef9 100644 --- a/src/sip/sipcall.cpp +++ b/src/sip/sipcall.cpp @@ -785,8 +785,10 @@ SIPCall::startIce() bool SIPCall::useVideoCodec(const AccountVideoCodecInfo* codec) const { +#ifdef RING_VIDEO if (videortp_.isSending()) return videortp_.useCodec(codec); +#endif return false; } @@ -1010,8 +1012,11 @@ SIPCall::getDetails() const peerHolding_ ? TRUE_STR : FALSE_STR); auto& acc = getSIPAccount(); + +#ifdef RING_VIDEO // If Video is not enabled return an empty string details.emplace(DRing::Call::Details::VIDEO_SOURCE, acc.isVideoEnabled() ? videoInput_ : ""); +#endif if (transport_ and transport_->isSecure()) { const auto& tlsInfos = transport_->getTlsInfos(); -- GitLab