[gssdp] client: Fall-back to UDA 1.0 if unspecified
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gssdp] client: Fall-back to UDA 1.0 if unspecified
- Date: Tue, 8 Jan 2019 19:41:30 +0000 (UTC)
commit c3149ea714938797029abf3963252430903dcb42
Author: Jens Georg <mail jensge org>
Date: Tue Jan 8 20:38:38 2019 +0100
client: Fall-back to UDA 1.0 if unspecified
libgssdp/gssdp-client.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/libgssdp/gssdp-client.c b/libgssdp/gssdp-client.c
index ae95656..e7cc3fe 100644
--- a/libgssdp/gssdp-client.c
+++ b/libgssdp/gssdp-client.c
@@ -198,6 +198,11 @@ gssdp_client_initable_init (GInitable *initable,
if (priv->initialized)
return TRUE;
+ /* Fall-back to UDA 1.0 if no version is specified */
+ if (priv->uda_version == GSSDP_UDA_VERSION_UNSPECIFIED) {
+ priv->uda_version = GSSDP_UDA_VERSION_1_0;
+ }
+
if (!gssdp_net_init (error))
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]