mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
aggregator: add a convenience macro to get the source pad
Easier than casting or acessing the parent everywhere
This commit is contained in:
parent
0a35f550b2
commit
07247f01ca
1 changed files with 14 additions and 0 deletions
|
@ -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 *
|
||||
************************/
|
||||
|
|
Loading…
Reference in a new issue