[gupnp/gupnp-1.0] context-manager: Fix white-list for control points
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp/gupnp-1.0] context-manager: Fix white-list for control points
- Date: Sun, 13 Jan 2019 17:58:33 +0000 (UTC)
commit 73ed010075f0b92e69ae6d1b411384f9abb04756
Author: Jens Georg <mail jensge org>
Date: Sun Jan 13 18:57:32 2019 +0100
context-manager: Fix white-list for control points
The control point derives from GSSDPResourceBrowser, thus the property
to access the context is "client", not "context"
libgupnp/gupnp-context-manager.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/libgupnp/gupnp-context-manager.c b/libgupnp/gupnp-context-manager.c
index 76915d9..3e0010d 100644
--- a/libgupnp/gupnp-context-manager.c
+++ b/libgupnp/gupnp-context-manager.c
@@ -188,9 +188,14 @@ gupnp_context_manager_filter_context (GUPnPWhiteList *white_list,
/* If the white list is empty, treat it as disabled */
if (check) {
GUPnPContext *context;
+ const char *property = "context";
+
+ if (GUPNP_IS_CONTROL_POINT (obj->data)) {
+ property = "client";
+ }
g_object_get (G_OBJECT (obj->data),
- "context", &context,
+ property, &context,
NULL);
match = gupnp_white_list_check_context (white_list,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]