From 127d5aa728a421151c7cd497701181859b271978 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Fri, 29 Sep 2017 15:29:07 +0200 Subject: [PATCH] fix(Call): use getPrivate correctly --- src/call/call.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/call/call.cpp b/src/call/call.cpp index d1d4495b3..b474f60ee 100644 --- a/src/call/call.cpp +++ b/src/call/call.cpp @@ -55,7 +55,7 @@ shared_ptr CallPrivate::getActiveSession () const { } bool CallPrivate::getAudioMuted () const { - return static_pointer_cast(getActiveSession())->getAudioMuted(); + return static_pointer_cast(getActiveSession())->getPrivate()->getAudioMuted(); } LinphoneProxyConfig *CallPrivate::getDestProxy () const { @@ -63,11 +63,11 @@ LinphoneProxyConfig *CallPrivate::getDestProxy () const { } IceSession *CallPrivate::getIceSession () const { - return static_pointer_cast(getActiveSession())->getIceSession(); + return static_pointer_cast(getActiveSession())->getPrivate()->getIceSession(); } MediaStream *CallPrivate::getMediaStream (LinphoneStreamType type) const { - return L_GET_PRIVATE(getActiveSession(), MediaSession)->getMediaStream(type); + return static_pointer_cast(getActiveSession())->getPrivate()->getMediaStream(type); } SalOp *CallPrivate::getOp () const { @@ -75,7 +75,7 @@ SalOp *CallPrivate::getOp () const { } void CallPrivate::setAudioMuted (bool value) { - L_GET_PRIVATE(getActiveSession(), MediaSession)->setAudioMuted(value); + static_pointer_cast(getActiveSession())->getPrivate()->setAudioMuted(value); } // -----------------------------------------------------------------------------