mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 00:45:56 +00:00
bad: audioaggregator: Do not post message before being constructed
`gst_aggregator_set_latency` will post a message on the bus which triggers traces for not constructed objects which fails in rust tracers as object should have names in all traces. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4975>
This commit is contained in:
parent
7911a580c2
commit
8d603b3e1d
1 changed files with 12 additions and 4 deletions
|
@ -638,12 +638,24 @@ gst_audio_aggregator_recalculate_latency (GstAudioAggregator * aagg)
|
||||||
GST_OBJECT_UNLOCK (aagg);
|
GST_OBJECT_UNLOCK (aagg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static void
|
||||||
|
gst_audio_aggregator_constructed (GObject * object)
|
||||||
|
{
|
||||||
|
GstAudioAggregator *aagg = GST_AUDIO_AGGREGATOR (object);
|
||||||
|
|
||||||
|
gst_audio_aggregator_translate_output_buffer_duration (aagg,
|
||||||
|
DEFAULT_OUTPUT_BUFFER_DURATION);
|
||||||
|
gst_audio_aggregator_recalculate_latency (aagg);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_audio_aggregator_class_init (GstAudioAggregatorClass * klass)
|
gst_audio_aggregator_class_init (GstAudioAggregatorClass * klass)
|
||||||
{
|
{
|
||||||
GObjectClass *gobject_class = (GObjectClass *) klass;
|
GObjectClass *gobject_class = (GObjectClass *) klass;
|
||||||
GstAggregatorClass *gstaggregator_class = (GstAggregatorClass *) klass;
|
GstAggregatorClass *gstaggregator_class = (GstAggregatorClass *) klass;
|
||||||
|
|
||||||
|
gobject_class->constructed = gst_audio_aggregator_constructed;
|
||||||
gobject_class->set_property = gst_audio_aggregator_set_property;
|
gobject_class->set_property = gst_audio_aggregator_set_property;
|
||||||
gobject_class->get_property = gst_audio_aggregator_get_property;
|
gobject_class->get_property = gst_audio_aggregator_get_property;
|
||||||
gobject_class->dispose = gst_audio_aggregator_dispose;
|
gobject_class->dispose = gst_audio_aggregator_dispose;
|
||||||
|
@ -759,10 +771,6 @@ gst_audio_aggregator_init (GstAudioAggregator * aagg)
|
||||||
aagg->priv->alignment_threshold = DEFAULT_ALIGNMENT_THRESHOLD;
|
aagg->priv->alignment_threshold = DEFAULT_ALIGNMENT_THRESHOLD;
|
||||||
aagg->priv->discont_wait = DEFAULT_DISCONT_WAIT;
|
aagg->priv->discont_wait = DEFAULT_DISCONT_WAIT;
|
||||||
|
|
||||||
gst_audio_aggregator_translate_output_buffer_duration (aagg,
|
|
||||||
DEFAULT_OUTPUT_BUFFER_DURATION);
|
|
||||||
gst_audio_aggregator_recalculate_latency (aagg);
|
|
||||||
|
|
||||||
aagg->current_caps = NULL;
|
aagg->current_caps = NULL;
|
||||||
|
|
||||||
aagg->priv->selected_samples_info =
|
aagg->priv->selected_samples_info =
|
||||||
|
|
Loading…
Reference in a new issue