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); } // -----------------------------------------------------------------------------