[rhythmbox/v0.13.x] mpris: Fix compile-time warning



commit eb225cbf8be6e8274169961a803002b8e9ff96e6
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Feb 24 04:59:55 2011 +0000

    mpris: Fix compile-time warning

 plugins/mpris/rb-mpris-plugin.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/mpris/rb-mpris-plugin.c b/plugins/mpris/rb-mpris-plugin.c
index 5b3decc..70186f4 100644
--- a/plugins/mpris/rb-mpris-plugin.c
+++ b/plugins/mpris/rb-mpris-plugin.c
@@ -177,7 +177,7 @@ add_player_property_change (RBMprisPlugin *plugin,
 			    GVariant *value)
 {
 	if (plugin->player_property_changes == NULL) {
-		plugin->player_property_changes = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_variant_unref);
+		plugin->player_property_changes = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify) g_variant_unref);
 	}
 	g_hash_table_insert (plugin->player_property_changes, g_strdup (property), g_variant_ref_sink (value));
 
@@ -192,7 +192,7 @@ add_playlist_property_change (RBMprisPlugin *plugin,
 			      GVariant *value)
 {
 	if (plugin->playlist_property_changes == NULL) {
-		plugin->playlist_property_changes = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_variant_unref);
+		plugin->playlist_property_changes = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify) g_variant_unref);
 	}
 	g_hash_table_insert (plugin->playlist_property_changes, g_strdup (property), g_variant_ref_sink (value));
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]