[rygel] media-export: Fix music browsing on XBox
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] media-export: Fix music browsing on XBox
- Date: Fri, 21 Oct 2011 18:25:30 +0000 (UTC)
commit 0166d09f06706589a2107c8e9cbe1bcd03b8715c
Author: Jens Georg <mail jensge org>
Date: Fri Oct 21 19:55:57 2011 +0200
media-export: Fix music browsing on XBox
.../rygel-media-export-root-container.vala | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-root-container.vala b/src/plugins/media-export/rygel-media-export-root-container.vala
index 8e74541..0b00078 100644
--- a/src/plugins/media-export/rygel-media-export-root-container.vala
+++ b/src/plugins/media-export/rygel-media-export-root-container.vala
@@ -53,6 +53,11 @@ public class Rygel.MediaExport.RootContainer : Rygel.MediaExport.DBContainer {
internal const string FILESYSTEM_FOLDER_NAME = "Files & Folders";
internal const string FILESYSTEM_FOLDER_ID = "Filesystem";
+ private const string SEARCH_CONTAINER_PREFIX = QueryContainer.PREFIX +
+ "upnp:class," +
+ MusicItem.UPNP_CLASS +
+ ",";
+
public static MediaContainer get_instance () throws Error {
if (RootContainer.instance == null) {
try {
@@ -239,7 +244,7 @@ public class Rygel.MediaExport.RootContainer : Rygel.MediaExport.DBContainer {
RelationalExpression expression) {
if (expression.operand1 == "upnp:class" &&
expression.op == SearchCriteriaOp.EQ) {
- string id = QueryContainer.PREFIX;
+ string id = SEARCH_CONTAINER_PREFIX;
switch (expression.operand2) {
case "object.container.album.musicAlbum":
id += "upnp:album,?";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]