From 198b16c563d03913c3608b47a6ea462fb888a214 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Mon, 26 Jan 2015 11:25:54 +0100 Subject: [PATCH] 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 --- gst/audiomixer/gstaudiomixer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/audiomixer/gstaudiomixer.c b/gst/audiomixer/gstaudiomixer.c index 179c186286..8fca8e407e 100644 --- a/gst/audiomixer/gstaudiomixer.c +++ b/gst/audiomixer/gstaudiomixer.c @@ -1469,7 +1469,7 @@ gst_audiomixer_aggregate (GstAggregator * agg, gboolean timeout) GstAudioMixerPad *pad = GST_AUDIO_MIXER_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; inbuf = gst_aggregator_pad_get_buffer (aggpad); @@ -1489,7 +1489,7 @@ gst_audiomixer_aggregate (GstAggregator * agg, gboolean timeout) 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"); continue; }