[rygel] tracker: Join item ID components by ',' rather than ':'
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] tracker: Join item ID components by ',' rather than ':'
- Date: Tue, 28 Sep 2010 13:55:05 +0000 (UTC)
commit 0c01e999553e8e1e8098b2ba1b066ed643c81062
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Sep 27 00:22:17 2010 +0300
tracker: Join item ID components by ',' rather than ':'
Use ',' intead of ':' to join SearchContainer's ID and item's URN in the
child item's ID. This fixes item queries for Tracker backend. This issue
has been there since commit 51e4fdb (Feb 19 2010) but it didn't realize
so far because the default slow search used to kick-in and save the day.
.../tracker/rygel-tracker-search-container.vala | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/tracker/rygel-tracker-search-container.vala b/src/plugins/tracker/rygel-tracker-search-container.vala
index 92f8d28..3026ea4 100644
--- a/src/plugins/tracker/rygel-tracker-search-container.vala
+++ b/src/plugins/tracker/rygel-tracker-search-container.vala
@@ -164,11 +164,11 @@ public class Rygel.Tracker.SearchContainer : Rygel.MediaContainer {
}
public string create_child_id_for_urn (string urn) {
- return this.id + ":" + urn;
+ return this.id + "," + urn;
}
private bool is_our_child (string id) {
- return id.has_prefix (this.id + ":");
+ return id.has_prefix (this.id + ",");
}
private async void get_children_count () {
@@ -273,7 +273,7 @@ public class Rygel.Tracker.SearchContainer : Rygel.MediaContainer {
// if item_id is invalid
private string? get_item_info (string item_id,
out string parent_id) {
- var tokens = item_id.split (":", 2);
+ var tokens = item_id.split (",", 2);
if (tokens[0] != null && tokens[1] != null) {
parent_id = tokens[0];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]