[rygel] media-export: Fix virtual containers
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] media-export: Fix virtual containers
- Date: Wed, 7 Aug 2013 09:34:58 +0000 (UTC)
commit 2d51378023b4829ff03900afb4ede3572a876e36
Author: Jens Georg <jensg openismus com>
Date: Wed Aug 7 11:31:22 2013 +0200
media-export: Fix virtual containers
.../rygel-media-export-media-cache.vala | 1 +
.../rygel-media-export-node-query-container.vala | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-media-cache.vala
b/src/plugins/media-export/rygel-media-export-media-cache.vala
index 2599592..a488e61 100644
--- a/src/plugins/media-export/rygel-media-export-media-cache.vala
+++ b/src/plugins/media-export/rygel-media-export-media-cache.vala
@@ -450,6 +450,7 @@ public class Rygel.MediaExport.MediaCache : Object {
// title here is actually the meta-data column, so if we had
// dc:title in the sort criteria, we need to change this
sql_sort_order = sql_sort_order.replace ("o.title", "_column");
+ extra_columns = extra_columns.replace (",o.title", "");
var sql = this.sql.make (SQLString.GET_META_DATA_COLUMN);
if (add_all_container) {
diff --git a/src/plugins/media-export/rygel-media-export-node-query-container.vala
b/src/plugins/media-export/rygel-media-export-node-query-container.vala
index 9259b3e..674190f 100644
--- a/src/plugins/media-export/rygel-media-export-node-query-container.vala
+++ b/src/plugins/media-export/rygel-media-export-node-query-container.vala
@@ -90,6 +90,8 @@ internal class Rygel.MediaExport.NodeQueryContainer : QueryContainer {
return data.size;
} catch (Error error) {
+ warning (_("Failed to get child count: %s"), error.message);
+
return 0;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]