Skip to content
Snippets Groups Projects
Commit 2def1015 authored by Alexandre Lision's avatar Alexandre Lision
Browse files

build: fix --disable-video compilation

Change-Id: Ib0306f783a597e5cd1d6abfd6bfd75f5f636e73d
Tuleap: #198
parent 606fbd35
No related branches found
No related tags found
No related merge requests found
...@@ -785,8 +785,10 @@ SIPCall::startIce() ...@@ -785,8 +785,10 @@ SIPCall::startIce()
bool bool
SIPCall::useVideoCodec(const AccountVideoCodecInfo* codec) const SIPCall::useVideoCodec(const AccountVideoCodecInfo* codec) const
{ {
#ifdef RING_VIDEO
if (videortp_.isSending()) if (videortp_.isSending())
return videortp_.useCodec(codec); return videortp_.useCodec(codec);
#endif
return false; return false;
} }
...@@ -1010,8 +1012,11 @@ SIPCall::getDetails() const ...@@ -1010,8 +1012,11 @@ SIPCall::getDetails() const
peerHolding_ ? TRUE_STR : FALSE_STR); peerHolding_ ? TRUE_STR : FALSE_STR);
auto& acc = getSIPAccount(); auto& acc = getSIPAccount();
#ifdef RING_VIDEO
// If Video is not enabled return an empty string // If Video is not enabled return an empty string
details.emplace(DRing::Call::Details::VIDEO_SOURCE, acc.isVideoEnabled() ? videoInput_ : ""); details.emplace(DRing::Call::Details::VIDEO_SOURCE, acc.isVideoEnabled() ? videoInput_ : "");
#endif
if (transport_ and transport_->isSecure()) { if (transport_ and transport_->isSecure()) {
const auto& tlsInfos = transport_->getTlsInfos(); const auto& tlsInfos = transport_->getTlsInfos();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment