Fix NULL pointer dereference in video stats display

This commit is contained in:
Pierre-Eric Pelloux-Prayer 2012-01-17 16:59:05 +01:00
parent ea7d048906
commit e53bc9209d

View file

@ -91,7 +91,9 @@ NSTimer *callQualityRefresher;
- (void) updateCallQualityIndicator
{
LinphoneCall* call = linphone_core_get_current_call([LinphoneManager getLc]);
if (!call)
return;
if (linphone_call_get_average_quality(call) >= 4) {
[mCallQuality setImage: [UIImage imageNamed:@"stat_sys_signal_4.png"]];
[mCallQualityLandRight setImage: [UIImage imageNamed:@"stat_sys_signal_4.png"]];