From c375b3b08ad1764a7f04834a5706e613e0e29574 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 27 Feb 2013 12:24:55 +0200 Subject: [PATCH] tools: Fix passing wrong argument to g_dbus_proxy_set_property_basic g_dbus_proxy_set_property_basic takes a pointer to value not the value itself like libdbus does. --- tools/mpris-player.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/mpris-player.c b/tools/mpris-player.c index 72f629d43..b0a870226 100644 --- a/tools/mpris-player.c +++ b/tools/mpris-player.c @@ -1081,7 +1081,7 @@ static void set_repeat(const GDBusPropertyTable *property, } g_dbus_proxy_set_property_basic(player->proxy, "Repeat", - DBUS_TYPE_STRING, value, + DBUS_TYPE_STRING, &value, property_result, GUINT_TO_POINTER(id), NULL); } @@ -1143,7 +1143,7 @@ static void set_shuffle(const GDBusPropertyTable *property, value = shuffle ? "alltracks" : "off"; g_dbus_proxy_set_property_basic(player->proxy, "Shuffle", - DBUS_TYPE_STRING, value, + DBUS_TYPE_STRING, &value, property_result, GUINT_TO_POINTER(id), NULL); } -- 2.47.3