[banshee: 26/57] Parse in a different thread than the service thread
- From: Bertrand Lorentz <blorentz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee: 26/57] Parse in a different thread than the service thread
- Date: Mon, 13 Feb 2012 20:30:00 +0000 (UTC)
commit 60022fad513f8fbb3de629588f1225255b4baaf2
Author: Tobias Arrskog <topfs2 xbmc org>
Date: Tue Jul 5 22:33:14 2011 +0200
Parse in a different thread than the service thread
.../Banshee.UPnPClient/UPnPServerSource.cs | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/Extensions/Banshee.UPnPClient/Banshee.UPnPClient/UPnPServerSource.cs b/src/Extensions/Banshee.UPnPClient/Banshee.UPnPClient/UPnPServerSource.cs
index fd50c0f..328e1e7 100644
--- a/src/Extensions/Banshee.UPnPClient/Banshee.UPnPClient/UPnPServerSource.cs
+++ b/src/Extensions/Banshee.UPnPClient/Banshee.UPnPClient/UPnPServerSource.cs
@@ -41,6 +41,8 @@ using Banshee.Configuration;
using Banshee.Sources;
using Banshee.ServiceStack;
+using Hyena;
+
namespace Banshee.UPnPClient
{
public class UPnPServerSource : Source
@@ -68,7 +70,10 @@ namespace Banshee.UPnPClient
music_source = new UPnPMusicSource(device.Udn);
AddChildSource (music_source);
- Parse (contentDirectory);
+ ThreadAssist.Spawn (delegate {
+ Parse (contentDirectory);
+ });
+
}
void Parse (ContentDirectoryController contentDirectory)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]