[gnome-settings-daemon/wip/hadess/extend-mpris: 1/3] media-keys: Add guard to MPRIS controller code
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/wip/hadess/extend-mpris: 1/3] media-keys: Add guard to MPRIS controller code
- Date: Wed, 20 Oct 2021 12:05:08 +0000 (UTC)
commit 4ee15fde29f89a7c560583114d2da4211da534ef
Author: Bastien Nocera <hadess hadess net>
Date: Mon Oct 18 15:07:01 2021 +0200
media-keys: Add guard to MPRIS controller code
plugins/media-keys/mpris-controller.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/plugins/media-keys/mpris-controller.c b/plugins/media-keys/mpris-controller.c
index c70f0bc1..4fcbbf04 100644
--- a/plugins/media-keys/mpris-controller.c
+++ b/plugins/media-keys/mpris-controller.c
@@ -77,6 +77,9 @@ mpris_proxy_call_done (GObject *object,
gboolean
mpris_controller_key (MprisController *self, const gchar *key)
{
+ g_return_val_if_fail (MPRIS_IS_CONTROLLER (self), FALSE);
+ g_return_val_if_fail (key != NULL, FALSE);
+
if (!self->mpris_client_proxy)
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]