mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-07 20:35:31 +00:00
sip: media-pipeline: Don't shadow props variable
As caught by compiling with `-Wshadow`
This commit is contained in:
parent
2847508034
commit
7988ddf85b
1 changed files with 13 additions and 13 deletions
|
@ -363,7 +363,7 @@ initable_init (GInitable *initable,
|
||||||
g_autoptr (GstCaps) caps = NULL;
|
g_autoptr (GstCaps) caps = NULL;
|
||||||
g_autofree char *caps_string = NULL;
|
g_autofree char *caps_string = NULL;
|
||||||
GstPad *srcpad, *sinkpad;
|
GstPad *srcpad, *sinkpad;
|
||||||
GstStructure *props = NULL;
|
GstStructure *gst_props = NULL;
|
||||||
const char *env_var;
|
const char *env_var;
|
||||||
|
|
||||||
env_var = g_getenv ("CALLS_AUDIOSINK");
|
env_var = g_getenv ("CALLS_AUDIOSINK");
|
||||||
|
@ -374,17 +374,17 @@ initable_init (GInitable *initable,
|
||||||
self->audiosink = gst_element_factory_make ("pulsesink", "sink");
|
self->audiosink = gst_element_factory_make ("pulsesink", "sink");
|
||||||
|
|
||||||
/* enable echo cancellation and set buffer size to 40ms */
|
/* enable echo cancellation and set buffer size to 40ms */
|
||||||
props = gst_structure_new ("props",
|
gst_props = gst_structure_new ("props",
|
||||||
"media.role", G_TYPE_STRING, "phone",
|
"media.role", G_TYPE_STRING, "phone",
|
||||||
"filter.want", G_TYPE_STRING, "echo-cancel",
|
"filter.want", G_TYPE_STRING, "echo-cancel",
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
g_object_set (self->audiosink,
|
g_object_set (self->audiosink,
|
||||||
"buffer-time", (gint64) 40000,
|
"buffer-time", (gint64) 40000,
|
||||||
"stream-properties", props,
|
"stream-properties", gst_props,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
gst_structure_free (props);
|
gst_structure_free (gst_props);
|
||||||
}
|
}
|
||||||
|
|
||||||
env_var = g_getenv ("CALLS_AUDIOSRC");
|
env_var = g_getenv ("CALLS_AUDIOSRC");
|
||||||
|
@ -395,17 +395,17 @@ initable_init (GInitable *initable,
|
||||||
self->audiosrc = gst_element_factory_make ("pulsesrc", "source");
|
self->audiosrc = gst_element_factory_make ("pulsesrc", "source");
|
||||||
|
|
||||||
/* enable echo cancellation and set buffer size to 40ms */
|
/* enable echo cancellation and set buffer size to 40ms */
|
||||||
props = gst_structure_new ("props",
|
gst_props = gst_structure_new ("props",
|
||||||
"media.role", G_TYPE_STRING, "phone",
|
"media.role", G_TYPE_STRING, "phone",
|
||||||
"filter.want", G_TYPE_STRING, "echo-cancel",
|
"filter.want", G_TYPE_STRING, "echo-cancel",
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
g_object_set (self->audiosrc,
|
g_object_set (self->audiosrc,
|
||||||
"buffer-time", (gint64) 40000,
|
"buffer-time", (gint64) 40000,
|
||||||
"stream-properties", props,
|
"stream-properties", gst_props,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
gst_structure_free (props);
|
gst_structure_free (gst_props);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!self->audiosrc || !self->audiosink) {
|
if (!self->audiosrc || !self->audiosink) {
|
||||||
|
|
Loading…
Reference in a new issue