[libgnome-volume-control/wip/muktupavels/mixer-control-warning] mixer-control: remove unneeded cast
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgnome-volume-control/wip/muktupavels/mixer-control-warning] mixer-control: remove unneeded cast
- Date: Sat, 19 Mar 2022 12:18:50 +0000 (UTC)
commit 277335110789563770af38b2a7ae41736bd9c7a4
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Mar 19 14:16:27 2022 +0200
mixer-control: remove unneeded cast
Stream id was changed to unsigned int in b7bce3294492.
gvc-mixer-control.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gvc-mixer-control.c b/gvc-mixer-control.c
index 456e6f6..8f48f29 100644
--- a/gvc-mixer-control.c
+++ b/gvc-mixer-control.c
@@ -1276,7 +1276,7 @@ match_stream_with_devices (GvcMixerControl *control,
stream_id);
g_object_set (G_OBJECT (device),
- "stream-id", (gint)stream_id,
+ "stream-id", stream_id,
NULL);
in_possession = TRUE;
}
@@ -1366,7 +1366,7 @@ sync_devices (GvcMixerControl *control,
}
g_object_set (G_OBJECT (device),
- "stream-id", (gint)gvc_mixer_stream_get_id (stream),
+ "stream-id", gvc_mixer_stream_get_id (stream),
"description", gvc_mixer_stream_get_description (stream),
"origin", "", /*Leave it empty for these special cases*/
"port-name", NULL,
@@ -1376,7 +1376,7 @@ sync_devices (GvcMixerControl *control,
GObject *object;
object = g_object_new (GVC_TYPE_MIXER_UI_DEVICE,
- "stream-id", (gint)gvc_mixer_stream_get_id (stream),
+ "stream-id", gvc_mixer_stream_get_id (stream),
"description", gvc_mixer_stream_get_description (stream),
"origin", "", /* Leave it empty for these special cases */
"port-name", NULL,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]