[rhythmbox] rhythmbox-client: seek in seconds, not microseconds
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] rhythmbox-client: seek in seconds, not microseconds
- Date: Sat, 24 Aug 2013 02:27:10 +0000 (UTC)
commit a2e09cbb354530fbdbe9706daebb016a049c85c5
Author: Jonathan Matthew <jonathan d14n org>
Date: Sat Aug 24 12:26:47 2013 +1000
rhythmbox-client: seek in seconds, not microseconds
remote/dbus/rb-client.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/remote/dbus/rb-client.c b/remote/dbus/rb-client.c
index f9b541a..62569ef 100644
--- a/remote/dbus/rb-client.c
+++ b/remote/dbus/rb-client.c
@@ -822,9 +822,12 @@ main (int argc, char **argv)
if (properties != NULL) {
GVariant *v = g_hash_table_lookup (properties, "mpris:trackid");
if (v != NULL) {
+ gint64 useek;
+
+ useek = seek * 1000000;
g_dbus_proxy_call_sync (mpris,
"SetPosition",
- g_variant_new ("(ox)", g_variant_get_string (v,
NULL), seek),
+ g_variant_new ("(ox)", g_variant_get_string (v,
NULL), useek),
G_DBUS_CALL_FLAGS_NONE,
-1,
NULL,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]