From 7988ddf85b82415b73eab97fb217bb1b604bb0db Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Wed, 2 Jun 2021 19:38:54 +0200 Subject: [PATCH] sip: media-pipeline: Don't shadow props variable As caught by compiling with `-Wshadow` --- plugins/sip/calls-sip-media-pipeline.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/plugins/sip/calls-sip-media-pipeline.c b/plugins/sip/calls-sip-media-pipeline.c index a7aa02e..723f387 100644 --- a/plugins/sip/calls-sip-media-pipeline.c +++ b/plugins/sip/calls-sip-media-pipeline.c @@ -363,7 +363,7 @@ initable_init (GInitable *initable, g_autoptr (GstCaps) caps = NULL; g_autofree char *caps_string = NULL; GstPad *srcpad, *sinkpad; - GstStructure *props = NULL; + GstStructure *gst_props = NULL; const char *env_var; env_var = g_getenv ("CALLS_AUDIOSINK"); @@ -374,17 +374,17 @@ initable_init (GInitable *initable, self->audiosink = gst_element_factory_make ("pulsesink", "sink"); /* enable echo cancellation and set buffer size to 40ms */ - props = gst_structure_new ("props", - "media.role", G_TYPE_STRING, "phone", - "filter.want", G_TYPE_STRING, "echo-cancel", - NULL); + gst_props = gst_structure_new ("props", + "media.role", G_TYPE_STRING, "phone", + "filter.want", G_TYPE_STRING, "echo-cancel", + NULL); g_object_set (self->audiosink, "buffer-time", (gint64) 40000, - "stream-properties", props, + "stream-properties", gst_props, NULL); - gst_structure_free (props); + gst_structure_free (gst_props); } env_var = g_getenv ("CALLS_AUDIOSRC"); @@ -395,17 +395,17 @@ initable_init (GInitable *initable, self->audiosrc = gst_element_factory_make ("pulsesrc", "source"); /* enable echo cancellation and set buffer size to 40ms */ - props = gst_structure_new ("props", - "media.role", G_TYPE_STRING, "phone", - "filter.want", G_TYPE_STRING, "echo-cancel", - NULL); + gst_props = gst_structure_new ("props", + "media.role", G_TYPE_STRING, "phone", + "filter.want", G_TYPE_STRING, "echo-cancel", + NULL); g_object_set (self->audiosrc, "buffer-time", (gint64) 40000, - "stream-properties", props, + "stream-properties", gst_props, NULL); - gst_structure_free (props); + gst_structure_free (gst_props); } if (!self->audiosrc || !self->audiosink) {