[banshee: 11/57] Allow MediaServers which does not provide a containers childcount to still be recursive browsed
- From: Bertrand Lorentz <blorentz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee: 11/57] Allow MediaServers which does not provide a containers childcount to still be recursive browsed
- Date: Mon, 13 Feb 2012 20:28:44 +0000 (UTC)
commit ea96edc753458b982455d6b849e012ffda1f7b4d
Author: Tobias Arrskog <topfs2 xbmc org>
Date: Mon Jun 6 17:10:50 2011 +0200
Allow MediaServers which does not provide a containers childcount to still be recursive browsed
.../Banshee.UPnPClient/UPnPSource.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Extensions/Banshee.UPnPClient/Banshee.UPnPClient/UPnPSource.cs b/src/Extensions/Banshee.UPnPClient/Banshee.UPnPClient/UPnPSource.cs
index 6b914a4..ba0217a 100644
--- a/src/Extensions/Banshee.UPnPClient/Banshee.UPnPClient/UPnPSource.cs
+++ b/src/Extensions/Banshee.UPnPClient/Banshee.UPnPClient/UPnPSource.cs
@@ -123,7 +123,7 @@ namespace Banshee.UPnPClient
private void ParseContainer(RemoteContentDirectory contentDirectory, Container container, int depth)
{
- if (depth > 10 || container.ChildCount == 0)
+ if (depth > 10 || (container.ChildCount.HasValue && container.ChildCount == 0))
return;
foreach (var item in contentDirectory.GetChildren<Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Object>(container))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]