1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-06-28 14:49:30 +00:00

sip: media-pipeline: Don't shadow props variable

As caught by compiling with `-Wshadow`
This commit is contained in:
Evangelos Ribeiro Tzaras 2021-06-02 19:38:54 +02:00
parent 2847508034
commit 7988ddf85b

View file

@ -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) {