mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
audio aggregator: Rename property enum to match class name
Add "CONVERT" into the property enum as we're going to add an enum specifically for the base pad. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1209>
This commit is contained in:
parent
63de6d564e
commit
1eff5ffef6
1 changed files with 10 additions and 9 deletions
|
@ -121,12 +121,6 @@ struct _GstAudioAggregatorPadPrivate
|
||||||
G_DEFINE_TYPE_WITH_PRIVATE (GstAudioAggregatorPad, gst_audio_aggregator_pad,
|
G_DEFINE_TYPE_WITH_PRIVATE (GstAudioAggregatorPad, gst_audio_aggregator_pad,
|
||||||
GST_TYPE_AGGREGATOR_PAD);
|
GST_TYPE_AGGREGATOR_PAD);
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
PROP_PAD_0,
|
|
||||||
PROP_PAD_CONVERTER_CONFIG,
|
|
||||||
};
|
|
||||||
|
|
||||||
static GstFlowReturn
|
static GstFlowReturn
|
||||||
gst_audio_aggregator_pad_flush_pad (GstAggregatorPad * aggpad,
|
gst_audio_aggregator_pad_flush_pad (GstAggregatorPad * aggpad,
|
||||||
GstAggregator * aggregator);
|
GstAggregator * aggregator);
|
||||||
|
@ -183,6 +177,12 @@ gst_audio_aggregator_pad_flush_pad (GstAggregatorPad * aggpad,
|
||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum
|
||||||
|
{
|
||||||
|
PROP_CONVERT_PAD_0,
|
||||||
|
PROP_CONVERT_PAD_CONVERTER_CONFIG
|
||||||
|
};
|
||||||
|
|
||||||
struct _GstAudioAggregatorConvertPadPrivate
|
struct _GstAudioAggregatorConvertPadPrivate
|
||||||
{
|
{
|
||||||
/* All members are protected by the pad object lock */
|
/* All members are protected by the pad object lock */
|
||||||
|
@ -307,7 +307,7 @@ gst_audio_aggregator_convert_pad_get_property (GObject * object, guint prop_id,
|
||||||
GstAudioAggregatorConvertPad *pad = GST_AUDIO_AGGREGATOR_CONVERT_PAD (object);
|
GstAudioAggregatorConvertPad *pad = GST_AUDIO_AGGREGATOR_CONVERT_PAD (object);
|
||||||
|
|
||||||
switch (prop_id) {
|
switch (prop_id) {
|
||||||
case PROP_PAD_CONVERTER_CONFIG:
|
case PROP_CONVERT_PAD_CONVERTER_CONFIG:
|
||||||
GST_OBJECT_LOCK (pad);
|
GST_OBJECT_LOCK (pad);
|
||||||
if (pad->priv->converter_config)
|
if (pad->priv->converter_config)
|
||||||
g_value_set_boxed (value, pad->priv->converter_config);
|
g_value_set_boxed (value, pad->priv->converter_config);
|
||||||
|
@ -326,7 +326,7 @@ gst_audio_aggregator_convert_pad_set_property (GObject * object, guint prop_id,
|
||||||
GstAudioAggregatorConvertPad *pad = GST_AUDIO_AGGREGATOR_CONVERT_PAD (object);
|
GstAudioAggregatorConvertPad *pad = GST_AUDIO_AGGREGATOR_CONVERT_PAD (object);
|
||||||
|
|
||||||
switch (prop_id) {
|
switch (prop_id) {
|
||||||
case PROP_PAD_CONVERTER_CONFIG:
|
case PROP_CONVERT_PAD_CONVERTER_CONFIG:
|
||||||
GST_OBJECT_LOCK (pad);
|
GST_OBJECT_LOCK (pad);
|
||||||
if (pad->priv->converter_config)
|
if (pad->priv->converter_config)
|
||||||
gst_structure_free (pad->priv->converter_config);
|
gst_structure_free (pad->priv->converter_config);
|
||||||
|
@ -351,7 +351,8 @@ gst_audio_aggregator_convert_pad_class_init (GstAudioAggregatorConvertPadClass *
|
||||||
gobject_class->set_property = gst_audio_aggregator_convert_pad_set_property;
|
gobject_class->set_property = gst_audio_aggregator_convert_pad_set_property;
|
||||||
gobject_class->get_property = gst_audio_aggregator_convert_pad_get_property;
|
gobject_class->get_property = gst_audio_aggregator_convert_pad_get_property;
|
||||||
|
|
||||||
g_object_class_install_property (gobject_class, PROP_PAD_CONVERTER_CONFIG,
|
g_object_class_install_property (gobject_class,
|
||||||
|
PROP_CONVERT_PAD_CONVERTER_CONFIG,
|
||||||
g_param_spec_boxed ("converter-config", "Converter configuration",
|
g_param_spec_boxed ("converter-config", "Converter configuration",
|
||||||
"A GstStructure describing the configuration that should be used "
|
"A GstStructure describing the configuration that should be used "
|
||||||
"when converting this pad's audio buffers",
|
"when converting this pad's audio buffers",
|
||||||
|
|
Loading…
Reference in a new issue