diff options
author | Ken VanDine <ken.vandine@canonical.com> | 2012-03-30 14:12:41 -0400 |
---|---|---|
committer | Ken VanDine <ken.vandine@canonical.com> | 2012-03-30 14:12:41 -0400 |
commit | 66d95fc3a6a73357578051739dd58b5622ceffd6 (patch) | |
tree | b5bcad02ebe6ad24428dfb9544e3bcf08871b44e /src/sound-service-dbus.c | |
parent | d738d091793595d86f1a2353b06bf3584b0afbf9 (diff) | |
parent | 31b5a5a6508535ed1af86919c79d75571f1a65ef (diff) | |
download | ayatana-indicator-sound-66d95fc3a6a73357578051739dd58b5622ceffd6.tar.gz ayatana-indicator-sound-66d95fc3a6a73357578051739dd58b5622ceffd6.tar.bz2 ayatana-indicator-sound-66d95fc3a6a73357578051739dd58b5622ceffd6.zip |
* New upstream release.
- Inconsistency between messaging menu and sound menu pips (LP: #933593)
- indicator-sound-service crashed with SIGSEGV in
fast_validate() (LP: #949837)
- free-memory-read crash in indicator-sound-service's file
monitoring (LP: #965848)
- minor memory leaks in blacklist handling (LP: #960578)
- FIX (LP: FIX)
Diffstat (limited to 'src/sound-service-dbus.c')
-rw-r--r-- | src/sound-service-dbus.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/sound-service-dbus.c b/src/sound-service-dbus.c index cac7570..c503220 100644 --- a/src/sound-service-dbus.c +++ b/src/sound-service-dbus.c @@ -82,11 +82,11 @@ static void sound_service_dbus_finalize (GObject *object); static void show_sound_settings_dialog (DbusmenuMenuitem *mi, gpointer user_data); static gboolean sound_service_dbus_blacklist_player (SoundServiceDbus* self, - gchar* player_name, + const gchar* player_name, gboolean blacklist); static gboolean sound_service_dbus_is_blacklisted (SoundServiceDbus* self, - gchar* player_name); + const gchar* player_name); G_DEFINE_TYPE (SoundServiceDbus, sound_service_dbus, G_TYPE_OBJECT); @@ -323,8 +323,8 @@ bus_method_call (GDBusConnection * connection, } else if (g_strcmp0(method, "BlacklistMediaPlayer") == 0) { gboolean blacklist; - gchar* player_name; - g_variant_get (params, "(sb)", &player_name, &blacklist); + const gchar* player_name; + g_variant_get (params, "(&sb)", &player_name, &blacklist); g_debug ("BlacklistMediaPlayer - bool %i", blacklist); g_debug ("BlacklistMediaPlayer - name %s", player_name); @@ -334,8 +334,8 @@ bus_method_call (GDBusConnection * connection, retval = g_variant_new ("(b)", result); } else if (g_strcmp0(method, "IsBlacklisted") == 0) { - gchar* player_name; - g_variant_get (params, "(s)", &player_name); + const gchar* player_name; + g_variant_get (params, "(&s)", &player_name); g_debug ("IsBlacklisted - name %s", player_name); gboolean result = sound_service_dbus_is_blacklisted (service, @@ -382,7 +382,7 @@ bus_method_call (GDBusConnection * connection, TODO - Works nicely but refactor into at least two different methods **/ static gboolean sound_service_dbus_blacklist_player (SoundServiceDbus* self, - gchar* player_name, + const gchar* player_name, gboolean blacklist) { g_return_val_if_fail (player_name != NULL, FALSE); @@ -465,7 +465,7 @@ static gboolean sound_service_dbus_blacklist_player (SoundServiceDbus* self, } static gboolean sound_service_dbus_is_blacklisted (SoundServiceDbus *self, - gchar *player_name) + const gchar *player_name) { GSettings *our_settings; GVariant *the_black_list; |