aggregator: add a convenience macro to get the source pad
Easier than casting or acessing the parent everywhere
This commit is contained in:
parent
afcb49dcce
commit
0a495cbea2
@ -247,6 +247,20 @@ struct _GstAggregatorClass {
|
|||||||
gpointer _gst_reserved[GST_PADDING_LARGE];
|
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 *
|
* GstAggregator methods *
|
||||||
************************/
|
************************/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user