[totem/cherry-pick-802320a8: 2/2] mpris: Fix exported movie length
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/cherry-pick-802320a8: 2/2] mpris: Fix exported movie length
- Date: Mon, 25 Apr 2022 08:55:37 +0000 (UTC)
commit 0ce806173fee0281555a53e00effcd4cba1a57c1
Author: Andy Holmes <andrew g r holmes gmail com>
Date: Sat Apr 23 23:55:19 2022 -0700
mpris: Fix exported movie length
The metadata property `mpris:length` should be in microseconds, but was
being exported in milliseconds.
(cherry picked from commit 802320a8d85f8adc3aed851a0cdb7733f85f91b1)
src/plugins/mpris/totem-mpris.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/mpris/totem-mpris.c b/src/plugins/mpris/totem-mpris.c
index 529b1443f..e454590d8 100644
--- a/src/plugins/mpris/totem-mpris.c
+++ b/src/plugins/mpris/totem-mpris.c
@@ -269,7 +269,7 @@ calculate_metadata (TotemMprisPlugin *pi,
g_variant_builder_add (builder,
"{sv}",
"mpris:length",
- g_variant_new_int64 (stream_length));
+ g_variant_new_int64 (stream_length * 1000));
g_variant_builder_add (builder,
"{sv}",
"xesam:trackNumber",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]