From 7fdf6b4880a2ea50faedb7ba1c3c5fda954cc431 Mon Sep 17 00:00:00 2001 From: Jaganath Kanakkassery Date: Tue, 8 Jan 2013 10:55:48 +0530 Subject: [PATCH] audio: Replace g_hash_table_contains() with g_hash_table_lookup() g_hash_table_contains() is supported only from GLib 2.32. If BlueZ has to build against GLib 2.28 this patch replaces g_hash_table_contains() to g_hash_table_lookup() --- profiles/audio/player.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/profiles/audio/player.c b/profiles/audio/player.c index 874889372..bffb506ee 100644 --- a/profiles/audio/player.c +++ b/profiles/audio/player.c @@ -172,8 +172,11 @@ static gboolean get_status(const GDBusPropertyTable *property, static gboolean setting_exists(const GDBusPropertyTable *property, void *data) { struct media_player *mp = data; + const char *value; + + value = g_hash_table_lookup(mp->settings, property->name); - return g_hash_table_contains(mp->settings, property->name); + return value ? TRUE : FALSE; } static gboolean get_setting(const GDBusPropertyTable *property, -- 2.47.3