From 2230acf7b48711e47f02a81d256ec734a99e89f4 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Fri, 29 Sep 2017 15:06:34 +0200 Subject: [PATCH] fix(Call): avoid usage of L_GET_PRIVATE --- src/call/call.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/call/call.cpp b/src/call/call.cpp index 1571d9e2e..d1d4495b3 100644 --- a/src/call/call.cpp +++ b/src/call/call.cpp @@ -51,11 +51,11 @@ CallPrivate::~CallPrivate () { // ----------------------------------------------------------------------------- shared_ptr CallPrivate::getActiveSession () const { - return L_GET_PRIVATE(conference->getActiveParticipant())->getSession(); + return conference->getActiveParticipant()->getPrivate()->getSession(); } bool CallPrivate::getAudioMuted () const { - return L_GET_PRIVATE(getActiveSession(), MediaSession)->getAudioMuted(); + return static_pointer_cast(getActiveSession())->getAudioMuted(); } LinphoneProxyConfig *CallPrivate::getDestProxy () const { @@ -63,7 +63,7 @@ LinphoneProxyConfig *CallPrivate::getDestProxy () const { } IceSession *CallPrivate::getIceSession () const { - return L_GET_PRIVATE(getActiveSession(), MediaSession)->getIceSession(); + return static_pointer_cast(getActiveSession())->getIceSession(); } MediaStream *CallPrivate::getMediaStream (LinphoneStreamType type) const {