Commit d6d825e8 authored by Guillaume Roguez's avatar Guillaume Roguez

sipcall: fix --disable-video build

Refs #71925

Change-Id: I2ee688c9b70f7558d90b5593923ae70f72e94e81
parent 5809c831
......@@ -860,12 +860,14 @@ void
SIPCall::muteMedia(const std::string& mediaType, bool isMuted)
{
if (mediaType.compare(DRing::Media::Details::MEDIA_TYPE_VIDEO) == 0) {
#ifdef RING_VIDEO
RING_WARN("video muting %s", bool_to_str(isMuted));
isVideoMuted_ = isMuted;
videoInput_ = isVideoMuted_ ? "" : videoManager.videoDeviceMonitor.getMRLForDefaultDevice();
DRing::switchInput(getCallId(), videoInput_);
emitSignal<DRing::CallSignal::VideoMuted>(getCallId(), isVideoMuted_);
}else if (mediaType.compare(DRing::Media::Details::MEDIA_TYPE_AUDIO) == 0) {
#endif
} else if (mediaType.compare(DRing::Media::Details::MEDIA_TYPE_AUDIO) == 0) {
RING_WARN("audio muting %s", bool_to_str(isMuted));
isAudioMuted_ = isMuted;
avformatrtp_->setMuted(isAudioMuted_);
......
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