mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-02 03:09:23 +00:00
fix(Call): avoid usage of L_GET_PRIVATE
This commit is contained in:
parent
53d7a7d639
commit
2230acf7b4
1 changed files with 3 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue