[dleyna-server] Fix warning on totem startup

Bastien Nocera hadess at fedoraproject.org
Tue Feb 24 11:32:08 UTC 2015


commit cafa1638eedc5f3604b9df35850a12cd6fe33ffa
Author: Bastien Nocera <hadess at hadess.net>
Date:   Tue Feb 24 11:03:17 2015 +0100

    Fix warning on totem startup

 0001-Device-Fix-ChildCount-property-type.patch | 26 ++++++++++++++++++++++++++
 dleyna-server.spec                             |  9 ++++++++-
 2 files changed, 34 insertions(+), 1 deletion(-)
---
diff --git a/0001-Device-Fix-ChildCount-property-type.patch b/0001-Device-Fix-ChildCount-property-type.patch
new file mode 100644
index 0000000..140e685
--- /dev/null
+++ b/0001-Device-Fix-ChildCount-property-type.patch
@@ -0,0 +1,26 @@
+From 00ca5e70e755954c510cb4e2e42a8a5a52a071c0 Mon Sep 17 00:00:00 2001
+From: Bastien Nocera <hadess at hadess.net>
+Date: Thu, 17 Jul 2014 17:52:13 +0200
+Subject: [PATCH] [Device] Fix ChildCount property type
+
+It's a uint32, not a signed int.
+---
+ libdleyna/server/props.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libdleyna/server/props.c b/libdleyna/server/props.c
+index fc26ec2..13e76b5 100644
+--- a/libdleyna/server/props.c
++++ b/libdleyna/server/props.c
+@@ -622,7 +622,7 @@ static void prv_add_variant_prop(GVariantBuilder *vb, const gchar *key,
+ 
+ void dls_props_add_child_count(GVariantBuilder *item_vb, gint value)
+ {
+-	prv_add_int_prop(item_vb, DLS_INTERFACE_PROP_CHILD_COUNT, value);
++	prv_add_uint_prop(item_vb, DLS_INTERFACE_PROP_CHILD_COUNT, value);
+ }
+ 
+ static void prv_add_bool_prop(GVariantBuilder *vb, const gchar *key,
+-- 
+2.1.0
+
diff --git a/dleyna-server.spec b/dleyna-server.spec
index ca50b1d..4f7ce83 100644
--- a/dleyna-server.spec
+++ b/dleyna-server.spec
@@ -4,7 +4,7 @@
 
 Name:           dleyna-server
 Version:        0.4.0
-Release:        6%{?dist}
+Release:        7%{?dist}
 Summary:        Service for interacting with Digital Media Servers
 
 License:        LGPLv2
@@ -24,6 +24,9 @@ BuildRequires:  pkgconfig
 Requires:       dbus
 Requires:       dleyna-connector-dbus
 
+# https://github.com/01org/dleyna-server/issues/145
+Patch0:         0001-Device-Fix-ChildCount-property-type.patch
+
 %description
 D-Bus service for clients to discover and manipulate DLNA Digital Media
 Servers (DMSes).
@@ -31,6 +34,7 @@ Servers (DMSes).
 
 %prep
 %setup -qn %{name}-%{commit}
+%patch0 -p1
 
 %build
 autoreconf -fiv
@@ -70,6 +74,9 @@ rm -rf $RPM_BUILD_ROOT/%{_libdir}/pkgconfig
 
 
 %changelog
+* Tue Feb 24 2015 Bastien Nocera <bnocera at redhat.com> 0.4.0-7
+- Fix warning on totem startup
+
 * Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4.0-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 


More information about the scm-commits mailing list