[longomatch] Fix Exception creating the player in the controller
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Fix Exception creating the player in the controller
- Date: Tue, 31 Mar 2015 17:36:15 +0000 (UTC)
commit fb490827712d0bd587dae7619133f8b60e045cd1
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Fri Mar 27 10:39:41 2015 +0100
Fix Exception creating the player in the controller
LongoMatch.Services/Services/PlayerController.cs | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.Services/Services/PlayerController.cs
b/LongoMatch.Services/Services/PlayerController.cs
index 338b1ae..1b2a79b 100644
--- a/LongoMatch.Services/Services/PlayerController.cs
+++ b/LongoMatch.Services/Services/PlayerController.cs
@@ -800,8 +800,9 @@ namespace LongoMatch.Services
/// </summary>
void CreatePlayer ()
{
- player = multiPlayer = Config.MultimediaToolkit.GetMultiPlayer ();
- if (player == null) {
+ try {
+ player = multiPlayer = Config.MultimediaToolkit.GetMultiPlayer ();
+ } catch {
Log.Error ("Player with support for multiple cameras not found");
player = Config.MultimediaToolkit.GetPlayer ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]