[calls/wip/compiler-warnings: 6/12] sip: media-pipeline: Don't shadow props variable
- From: Evangelos Ribeiro Tzaras <devrtz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [calls/wip/compiler-warnings: 6/12] sip: media-pipeline: Don't shadow props variable
- Date: Fri, 16 Jul 2021 12:16:32 +0000 (UTC)
commit 80157d0ae8f24dd3f7cef455c2f720ac2f99b9fa
Author: Evangelos Ribeiro Tzaras <evangelos tzaras puri sm>
Date: Wed Jun 2 19:38:54 2021 +0200
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 a7aa02e3..723f3879 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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]