[grilo-plugins] upnp: Rename to grl_plugin_registry_get_default()
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] upnp: Rename to grl_plugin_registry_get_default()
- Date: Mon, 19 Jul 2010 13:08:21 +0000 (UTC)
commit 5baaa87ca3a38182e03f2d6350dd74a6222dad78
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date: Mon Jul 19 15:05:21 2010 +0200
upnp: Rename to grl_plugin_registry_get_default()
src/upnp/grl-upnp.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/upnp/grl-upnp.c b/src/upnp/grl-upnp.c
index ccd35aa..bd0ee92 100644
--- a/src/upnp/grl-upnp.c
+++ b/src/upnp/grl-upnp.c
@@ -298,7 +298,7 @@ gupnp_search_caps_cb (GUPnPServiceProxy *service,
name = source_info->source_name;
source_id = source_info->source_id;
- registry = grl_plugin_registry_get_instance ();
+ registry = grl_plugin_registry_get_default ();
if (grl_plugin_registry_lookup_source (registry, source_id)) {
g_debug ("A source with id '%s' is already registered. Skipping...",
source_id);
@@ -360,7 +360,7 @@ device_available_cb (GUPnPControlPoint *cp,
name = gupnp_device_info_get_friendly_name (GUPNP_DEVICE_INFO (device));
g_debug (" name: %s", name);
- registry = grl_plugin_registry_get_instance ();
+ registry = grl_plugin_registry_get_default ();
source_id = build_source_id (udn);
if (grl_plugin_registry_lookup_source (registry, source_id)) {
g_debug ("A source with id '%s' is already registered. Skipping...",
@@ -385,7 +385,7 @@ device_available_cb (GUPnPControlPoint *cp,
GrlUpnpSource *source = grl_upnp_source_new (source_id, name);
g_warning ("Failed to start GetCapabilitiesSearch action");
g_debug ("Setting search disabled for source '%s'", name );
- registry = grl_plugin_registry_get_instance ();
+ registry = grl_plugin_registry_get_default ();
grl_plugin_registry_register_source (registry,
source_info->plugin,
GRL_MEDIA_PLUGIN (source));
@@ -412,7 +412,7 @@ device_unavailable_cb (GUPnPControlPoint *cp,
udn = gupnp_device_info_get_udn (GUPNP_DEVICE_INFO (device));
g_debug (" udn: %s ", udn);
- registry = grl_plugin_registry_get_instance ();
+ registry = grl_plugin_registry_get_default ();
source_id = build_source_id (udn);
source = grl_plugin_registry_lookup_source (registry, source_id);
if (!source) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]