mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
aggregator: Hide GstAggregatorPad buffer and EOS fileds
And add a getter for the EOS. The user should always use the various getters to access those fields https://bugzilla.gnome.org/show_bug.cgi?id=742684
This commit is contained in:
parent
660ddd40c2
commit
198b16c563
1 changed files with 2 additions and 2 deletions
|
@ -1469,7 +1469,7 @@ gst_audiomixer_aggregate (GstAggregator * agg, gboolean timeout)
|
||||||
GstAudioMixerPad *pad = GST_AUDIO_MIXER_PAD (iter->data);
|
GstAudioMixerPad *pad = GST_AUDIO_MIXER_PAD (iter->data);
|
||||||
GstAggregatorPad *aggpad = GST_AGGREGATOR_PAD (iter->data);
|
GstAggregatorPad *aggpad = GST_AGGREGATOR_PAD (iter->data);
|
||||||
|
|
||||||
if (!GST_AGGREGATOR_PAD (pad)->eos)
|
if (!gst_aggregator_pad_is_eos (aggpad))
|
||||||
is_eos = FALSE;
|
is_eos = FALSE;
|
||||||
|
|
||||||
inbuf = gst_aggregator_pad_get_buffer (aggpad);
|
inbuf = gst_aggregator_pad_get_buffer (aggpad);
|
||||||
|
@ -1489,7 +1489,7 @@ gst_audiomixer_aggregate (GstAggregator * agg, gboolean timeout)
|
||||||
gst_buffer_unref (inbuf);
|
gst_buffer_unref (inbuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!pad->buffer && !dropped && GST_AGGREGATOR_PAD (pad)->eos) {
|
if (!pad->buffer && !dropped && gst_aggregator_pad_is_eos (aggpad)) {
|
||||||
GST_DEBUG_OBJECT (aggpad, "Pad is in EOS state");
|
GST_DEBUG_OBJECT (aggpad, "Pad is in EOS state");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue