aggregator: add a convenience macro to get the source pad

Easier than casting or acessing the parent everywhere
This commit is contained in:
Thiago Santos 2015-05-06 13:07:52 -03:00 committed by Tim-Philipp Müller
parent 0a35f550b2
commit 07247f01ca

View file

@ -247,6 +247,20 @@ struct _GstAggregatorClass {
gpointer _gst_reserved[GST_PADDING_LARGE];
};
/************************************
* GstAggregator convenience macros *
***********************************/
/**
* GST_AGGREGATOR_SRC_PAD:
* @agg: a #GstAggregator
*
* Convenience macro to access the source pad of #GstAggregator
*
* Since: 1.6
*/
#define GST_AGGREGATOR_SRC_PAD(agg) (((GstAggregator *)(agg))->srcpad)
/*************************
* GstAggregator methods *
************************/