summaryrefslogtreecommitdiff
path: root/sendto/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'sendto/plugins')
-rw-r--r--sendto/plugins/upnp/upnp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sendto/plugins/upnp/upnp.c b/sendto/plugins/upnp/upnp.c
index b381587..81a4f0a 100644
--- a/sendto/plugins/upnp/upnp.c
+++ b/sendto/plugins/upnp/upnp.c
@@ -206,7 +206,11 @@ init (NstPlugin *plugin)
return FALSE;
g_free (upload_cmd);
+#ifdef HAS_GUPNP_VERSION_1_2
+ context_manager = gupnp_context_manager_create (0);
+#else
context_manager = gupnp_context_manager_new (NULL, 0);
+#endif
g_assert (context_manager != NULL);
g_signal_connect (context_manager, "context-available",
G_CALLBACK (on_context_available), NULL);