[longomatch] Fix crash with empty playlists
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Fix crash with empty playlists
- Date: Tue, 25 Jun 2013 12:45:03 +0000 (UTC)
commit 2d5ff6fe77461b96877516f1d7ebc212c9eedb84
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Mon Jun 17 12:57:13 2013 +0200
Fix crash with empty playlists
LongoMatch.Services/Services/PlaylistManager.cs | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Services/Services/PlaylistManager.cs b/LongoMatch.Services/Services/PlaylistManager.cs
index 5aaba80..515fa3e 100644
--- a/LongoMatch.Services/Services/PlaylistManager.cs
+++ b/LongoMatch.Services/Services/PlaylistManager.cs
@@ -172,6 +172,8 @@ namespace LongoMatch.Services
protected virtual void OnRenderPlaylistEvent (IPlayList playlist)
{
List<EditionJob> jobs = guiToolkit.ConfigureRenderingJob(playlist);
+ if (jobs == null)
+ return;
foreach (Job job in jobs)
videoRenderer.AddJob(job);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]