mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
childproxy: update api use
This commit is contained in:
parent
8b1da8adb2
commit
ea17c457f9
4 changed files with 34 additions and 34 deletions
|
@ -653,14 +653,14 @@ gst_iir_equalizer_compute_frequencies (GstIirEqualizer * equ, guint new_count)
|
|||
GST_DEBUG ("adding band[%d]=%p", i, equ->bands[i]);
|
||||
|
||||
gst_object_set_parent (GST_OBJECT (equ->bands[i]), GST_OBJECT (equ));
|
||||
gst_child_proxy_child_added (G_OBJECT (equ),
|
||||
gst_child_proxy_child_added (GST_CHILD_PROXY (equ),
|
||||
G_OBJECT (equ->bands[i]), name);
|
||||
}
|
||||
} else {
|
||||
/* free unused bands */
|
||||
for (i = new_count; i < old_count; i++) {
|
||||
GST_DEBUG ("removing band[%d]=%p", i, equ->bands[i]);
|
||||
gst_child_proxy_child_removed (G_OBJECT (equ),
|
||||
gst_child_proxy_child_removed (GST_CHILD_PROXY (equ),
|
||||
G_OBJECT (equ->bands[i]), GST_OBJECT_NAME (equ->bands[i]));
|
||||
gst_object_unparent (GST_OBJECT (equ->bands[i]));
|
||||
equ->bands[i] = NULL;
|
||||
|
|
|
@ -146,38 +146,38 @@ static void
|
|||
gst_iir_equalizer_10bands_set_property (GObject * object, guint prop_id,
|
||||
const GValue * value, GParamSpec * pspec)
|
||||
{
|
||||
GstIirEqualizer *equ = GST_IIR_EQUALIZER (object);
|
||||
GstChildProxy *equ = GST_CHILD_PROXY (object);
|
||||
|
||||
switch (prop_id) {
|
||||
case PROP_BAND0:
|
||||
gst_child_proxy_set_property (G_OBJECT (equ), "band0::gain", value);
|
||||
gst_child_proxy_set_property (equ, "band0::gain", value);
|
||||
break;
|
||||
case PROP_BAND1:
|
||||
gst_child_proxy_set_property (G_OBJECT (equ), "band1::gain", value);
|
||||
gst_child_proxy_set_property (equ, "band1::gain", value);
|
||||
break;
|
||||
case PROP_BAND2:
|
||||
gst_child_proxy_set_property (G_OBJECT (equ), "band2::gain", value);
|
||||
gst_child_proxy_set_property (equ, "band2::gain", value);
|
||||
break;
|
||||
case PROP_BAND3:
|
||||
gst_child_proxy_set_property (G_OBJECT (equ), "band3::gain", value);
|
||||
gst_child_proxy_set_property (equ, "band3::gain", value);
|
||||
break;
|
||||
case PROP_BAND4:
|
||||
gst_child_proxy_set_property (G_OBJECT (equ), "band4::gain", value);
|
||||
gst_child_proxy_set_property (equ, "band4::gain", value);
|
||||
break;
|
||||
case PROP_BAND5:
|
||||
gst_child_proxy_set_property (G_OBJECT (equ), "band5::gain", value);
|
||||
gst_child_proxy_set_property (equ, "band5::gain", value);
|
||||
break;
|
||||
case PROP_BAND6:
|
||||
gst_child_proxy_set_property (G_OBJECT (equ), "band6::gain", value);
|
||||
gst_child_proxy_set_property (equ, "band6::gain", value);
|
||||
break;
|
||||
case PROP_BAND7:
|
||||
gst_child_proxy_set_property (G_OBJECT (equ), "band7::gain", value);
|
||||
gst_child_proxy_set_property (equ, "band7::gain", value);
|
||||
break;
|
||||
case PROP_BAND8:
|
||||
gst_child_proxy_set_property (G_OBJECT (equ), "band8::gain", value);
|
||||
gst_child_proxy_set_property (equ, "band8::gain", value);
|
||||
break;
|
||||
case PROP_BAND9:
|
||||
gst_child_proxy_set_property (G_OBJECT (equ), "band9::gain", value);
|
||||
gst_child_proxy_set_property (equ, "band9::gain", value);
|
||||
break;
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||
|
@ -189,38 +189,38 @@ static void
|
|||
gst_iir_equalizer_10bands_get_property (GObject * object, guint prop_id,
|
||||
GValue * value, GParamSpec * pspec)
|
||||
{
|
||||
GstIirEqualizer *equ = GST_IIR_EQUALIZER (object);
|
||||
GstChildProxy *equ = GST_CHILD_PROXY (object);
|
||||
|
||||
switch (prop_id) {
|
||||
case PROP_BAND0:
|
||||
gst_child_proxy_get_property (G_OBJECT (equ), "band0::gain", value);
|
||||
gst_child_proxy_get_property (equ, "band0::gain", value);
|
||||
break;
|
||||
case PROP_BAND1:
|
||||
gst_child_proxy_get_property (G_OBJECT (equ), "band1::gain", value);
|
||||
gst_child_proxy_get_property (equ, "band1::gain", value);
|
||||
break;
|
||||
case PROP_BAND2:
|
||||
gst_child_proxy_get_property (G_OBJECT (equ), "band2::gain", value);
|
||||
gst_child_proxy_get_property (equ, "band2::gain", value);
|
||||
break;
|
||||
case PROP_BAND3:
|
||||
gst_child_proxy_get_property (G_OBJECT (equ), "band3::gain", value);
|
||||
gst_child_proxy_get_property (equ, "band3::gain", value);
|
||||
break;
|
||||
case PROP_BAND4:
|
||||
gst_child_proxy_get_property (G_OBJECT (equ), "band4::gain", value);
|
||||
gst_child_proxy_get_property (equ, "band4::gain", value);
|
||||
break;
|
||||
case PROP_BAND5:
|
||||
gst_child_proxy_get_property (G_OBJECT (equ), "band5::gain", value);
|
||||
gst_child_proxy_get_property (equ, "band5::gain", value);
|
||||
break;
|
||||
case PROP_BAND6:
|
||||
gst_child_proxy_get_property (G_OBJECT (equ), "band6::gain", value);
|
||||
gst_child_proxy_get_property (equ, "band6::gain", value);
|
||||
break;
|
||||
case PROP_BAND7:
|
||||
gst_child_proxy_get_property (G_OBJECT (equ), "band7::gain", value);
|
||||
gst_child_proxy_get_property (equ, "band7::gain", value);
|
||||
break;
|
||||
case PROP_BAND8:
|
||||
gst_child_proxy_get_property (G_OBJECT (equ), "band8::gain", value);
|
||||
gst_child_proxy_get_property (equ, "band8::gain", value);
|
||||
break;
|
||||
case PROP_BAND9:
|
||||
gst_child_proxy_get_property (G_OBJECT (equ), "band9::gain", value);
|
||||
gst_child_proxy_get_property (equ, "band9::gain", value);
|
||||
break;
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||
|
|
|
@ -101,17 +101,17 @@ static void
|
|||
gst_iir_equalizer_3bands_set_property (GObject * object, guint prop_id,
|
||||
const GValue * value, GParamSpec * pspec)
|
||||
{
|
||||
GstIirEqualizer *equ = GST_IIR_EQUALIZER (object);
|
||||
GstChildProxy *equ = GST_CHILD_PROXY (object);
|
||||
|
||||
switch (prop_id) {
|
||||
case PROP_BAND0:
|
||||
gst_child_proxy_set_property (G_OBJECT (equ), "band0::gain", value);
|
||||
gst_child_proxy_set_property (equ, "band0::gain", value);
|
||||
break;
|
||||
case PROP_BAND1:
|
||||
gst_child_proxy_set_property (G_OBJECT (equ), "band1::gain", value);
|
||||
gst_child_proxy_set_property (equ, "band1::gain", value);
|
||||
break;
|
||||
case PROP_BAND2:
|
||||
gst_child_proxy_set_property (G_OBJECT (equ), "band2::gain", value);
|
||||
gst_child_proxy_set_property (equ, "band2::gain", value);
|
||||
break;
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||
|
@ -123,17 +123,17 @@ static void
|
|||
gst_iir_equalizer_3bands_get_property (GObject * object, guint prop_id,
|
||||
GValue * value, GParamSpec * pspec)
|
||||
{
|
||||
GstIirEqualizer *equ = GST_IIR_EQUALIZER (object);
|
||||
GstChildProxy *equ = GST_CHILD_PROXY (object);
|
||||
|
||||
switch (prop_id) {
|
||||
case PROP_BAND0:
|
||||
gst_child_proxy_get_property (G_OBJECT (equ), "band0::gain", value);
|
||||
gst_child_proxy_get_property (equ, "band0::gain", value);
|
||||
break;
|
||||
case PROP_BAND1:
|
||||
gst_child_proxy_get_property (G_OBJECT (equ), "band1::gain", value);
|
||||
gst_child_proxy_get_property (equ, "band1::gain", value);
|
||||
break;
|
||||
case PROP_BAND2:
|
||||
gst_child_proxy_get_property (G_OBJECT (equ), "band2::gain", value);
|
||||
gst_child_proxy_get_property (equ, "band2::gain", value);
|
||||
break;
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||
|
|
|
@ -1805,7 +1805,7 @@ gst_videomixer2_request_new_pad (GstElement * element,
|
|||
|
||||
/* add the pad to the element */
|
||||
gst_element_add_pad (element, GST_PAD (mixpad));
|
||||
gst_child_proxy_child_added (G_OBJECT (mix), G_OBJECT (mixpad),
|
||||
gst_child_proxy_child_added (GST_CHILD_PROXY (mix), G_OBJECT (mixpad),
|
||||
GST_OBJECT_NAME (mixpad));
|
||||
|
||||
return GST_PAD (mixpad);
|
||||
|
@ -1829,7 +1829,7 @@ gst_videomixer2_release_pad (GstElement * element, GstPad * pad)
|
|||
mixpad = GST_VIDEO_MIXER2_PAD (pad);
|
||||
|
||||
mix->sinkpads = g_slist_remove (mix->sinkpads, pad);
|
||||
gst_child_proxy_child_removed (G_OBJECT (mix), G_OBJECT (mixpad),
|
||||
gst_child_proxy_child_removed (GST_CHILD_PROXY (mix), G_OBJECT (mixpad),
|
||||
GST_OBJECT_NAME (mixpad));
|
||||
mix->numpads--;
|
||||
|
||||
|
|
Loading…
Reference in a new issue