[libdmapsharing] Always set base URI path
- From: W. Michael Petullo <wmpetullo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdmapsharing] Always set base URI path
- Date: Mon, 8 Feb 2016 01:43:26 +0000 (UTC)
commit f71cbdaa12d1d1c7069b46b18b0be88320e409a6
Author: Sam Thursfield <sam afuera me uk>
Date: Sun Feb 7 22:52:44 2016 +0000
Always set base URI path
A SoupURI is considered invalid if the path is NULL. Set the path of the
base URI to an empty string, instead.
This fixes a bunch of these warnings:
(rhythmbox:32182): libsoup-WARNING **: (soup-uri.c:248):soup_uri_new_with_base: runtime check failed:
(SOUP_URI_IS_VALID (base))
libdmapsharing/dmap-connection.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libdmapsharing/dmap-connection.c b/libdmapsharing/dmap-connection.c
index fbc635c..9f23eef 100644
--- a/libdmapsharing/dmap-connection.c
+++ b/libdmapsharing/dmap-connection.c
@@ -1226,6 +1226,7 @@ dmap_connection_setup (DMAPConnection * connection)
connection->priv->host);
soup_uri_set_port (connection->priv->base_uri,
connection->priv->port);
+ soup_uri_set_path (connection->priv->base_uri, "");
}
// FIXME: it would be nice if this mirrored the use of DMAPMdnsBrowser. That is, connect callback handler to
a signal.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]