mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 03:57:27 +00:00
Added try/catch to VideoCodecUiDriver constructor. Seems to resolve errant NullRef
This commit is contained in:
parent
65adc5de1c
commit
23fb8311fe
1 changed files with 90 additions and 83 deletions
|
|
@ -97,6 +97,8 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
|||
/// <param name="codec"></param>
|
||||
public EssentialsVideoCodecUiDriver(BasicTriListWithSmartObject triList, IAVDriver parent, VideoCodecBase codec)
|
||||
: base(triList)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (codec == null)
|
||||
throw new ArgumentNullException("Codec cannot be null");
|
||||
|
|
@ -187,6 +189,11 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
|||
|
||||
TriList.SetSigFalseAction(UIBoolJoin.CallStopSharingPress, Codec.StopSharing);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Debug.Console(1, "Exception in VideoCodecUiDriver Constructor: {0}", e);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Updates the current shared source label on the call list when the source changes
|
||||
|
|
@ -272,7 +279,7 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
|||
ShowKeypad();
|
||||
DialStringBuilder.Remove(0, DialStringBuilder.Length);
|
||||
DialStringFeedback.FireUpdate();
|
||||
Parent.ShowNotificationRibbon("Disonnected", 2000);
|
||||
Parent.ShowNotificationRibbon("Disconnected", 2000);
|
||||
}
|
||||
break;
|
||||
case eCodecCallStatus.Disconnecting:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue