mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 21:28:08 +00:00
Check LinphoneCore ptr validity before using it
This commit is contained in:
parent
58e9256f79
commit
2ef541de04
1 changed files with 4 additions and 0 deletions
|
|
@ -791,6 +791,8 @@ void networkReachabilityCallBack(SCNetworkReachabilityRef target, SCNetworkReach
|
|||
}
|
||||
|
||||
-(void) beginInterruption {
|
||||
if (!theLinphoneCore)
|
||||
return;
|
||||
LinphoneCall* c = linphone_core_get_current_call(theLinphoneCore);
|
||||
ms_message("Sound interruption detected!");
|
||||
if (c) {
|
||||
|
|
@ -799,6 +801,8 @@ void networkReachabilityCallBack(SCNetworkReachabilityRef target, SCNetworkReach
|
|||
}
|
||||
|
||||
-(void) endInterruption {
|
||||
if (!theLinphoneCore)
|
||||
return;
|
||||
ms_message("Sound interruption ended!");
|
||||
const MSList* c = linphone_core_get_calls(theLinphoneCore);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue