Commit 2def1015 authored by Alexandre Lision's avatar Alexandre Lision

build: fix --disable-video compilation

Change-Id: Ib0306f783a597e5cd1d6abfd6bfd75f5f636e73d
Tuleap: #198
parent 606fbd35
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment