Commit 2230acf7 authored by Ronan's avatar Ronan

fix(Call): avoid usage of L_GET_PRIVATE

parent 53d7a7d6
......@@ -51,11 +51,11 @@ CallPrivate::~CallPrivate () {
// -----------------------------------------------------------------------------
shared_ptr<CallSession> 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<MediaSession>(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<MediaSession>(getActiveSession())->getIceSession();
}
MediaStream *CallPrivate::getMediaStream (LinphoneStreamType type) const {
......
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