[totem/gnome-3-12] dbusservice: Force Position to be int64
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/gnome-3-12] dbusservice: Force Position to be int64
- Date: Mon, 29 Sep 2014 17:38:24 +0000 (UTC)
commit 35861c3726053d00244743abe67cf3b8dbbdf153
Author: Jens Georg <mail jensge org>
Date: Sat Sep 27 13:24:00 2014 +0200
dbusservice: Force Position to be int64
Fixes type mismatch issue with Rygel/GIO:
(lt-rygel:21424): GLib-GIO-WARNING **: Received property Position with type i
does not match expected type x in the expected interface
https://bugzilla.gnome.org/show_bug.cgi?id=737476
src/plugins/dbusservice/dbusservice.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/dbusservice/dbusservice.py b/src/plugins/dbusservice/dbusservice.py
index 3f24a9c..a0b82ff 100644
--- a/src/plugins/dbusservice/dbusservice.py
+++ b/src/plugins/dbusservice/dbusservice.py
@@ -193,7 +193,7 @@ class Root (dbus.service.Object): # pylint: disable-msg=R0923,R0904
'MaximumRate': 1.0,
'Metadata': self.__calculate_metadata (),
'Volume': self.totem.get_volume (), # TODO: Notifications
- 'Position': self.totem.props.current_time * 1000,
+ 'Position': dbus.Int64(self.totem.props.current_time * 1000),
'CanGoNext': True, # TODO
'CanGoPrevious': True, # TODO
'CanPlay': (self.totem.props.current_mrl != None),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]