[grilo-plugins/0.2.x] dmap: Prefix source id with "grl-dmap-" prefix
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins/0.2.x] dmap: Prefix source id with "grl-dmap-" prefix
- Date: Wed, 12 Sep 2012 17:15:18 +0000 (UTC)
commit ab87e4a90ab32d9dac7df9c5ea974efa5d715702
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date: Wed Sep 12 15:27:40 2012 +0200
dmap: Prefix source id with "grl-dmap-" prefix
Purpose is double: use the same policy as other sources, and to avoid
conflicts with other sources having exactly the same title.
This fixes https://bugzilla.gnome.org/show_bug.cgi?id=652516
src/dmap/grl-dmap.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/dmap/grl-dmap.c b/src/dmap/grl-dmap.c
index add4db0..c7d65ef 100644
--- a/src/dmap/grl-dmap.c
+++ b/src/dmap/grl-dmap.c
@@ -162,13 +162,17 @@ static GrlDmapSource *
grl_dmap_source_new (DMAPMdnsBrowserService *service)
{
gchar *source_desc;
+ gchar *source_id;
+
GrlDmapSource *source;
GRL_DEBUG ("grl_dmap_source_new");
+
source_desc = g_strdup_printf (SOURCE_DESC_TEMPLATE, service->name);
+ source_id = g_strdup_printf (SOURCE_ID_TEMPLATE, service->name);
source = g_object_new (GRL_DMAP_SOURCE_TYPE,
- "source-id", service->name,
+ "source-id", source_id,
"source-name", service->name,
"source-desc", source_desc,
NULL);
@@ -176,6 +180,7 @@ grl_dmap_source_new (DMAPMdnsBrowserService *service)
source->priv->service = service;
g_free (source_desc);
+ g_free (source_id);
return source;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]