Top | ![]() |
![]() |
![]() |
![]() |
GstAggregatorPadGstAggregatorPad — GstPad subclass for pads managed by GstAggregator |
Pads managed by a GstAggregor subclass.
This class used to live in gst-plugins-bad and was moved to core.
GstBuffer *
gst_aggregator_pad_pop_buffer (GstAggregatorPad *pad
);
Steal the ref to the buffer currently queued in pad
.
GstBuffer *
gst_aggregator_pad_peek_buffer (GstAggregatorPad *pad
);
gboolean
gst_aggregator_pad_drop_buffer (GstAggregatorPad *pad
);
Drop the buffer currently queued in pad
.
gboolean
gst_aggregator_pad_has_buffer (GstAggregatorPad *pad
);
This checks if a pad has a buffer available that will be returned by
a call to gst_aggregator_pad_peek_buffer()
or
gst_aggregator_pad_pop_buffer()
.
Since: 1.14.1
struct GstAggregatorPad { /* Protected by the OBJECT_LOCK */ GstSegment segment; };
The implementation the GstPad to use with GstAggregator
struct GstAggregatorPadClass { GstPadClass parent_class; GstFlowReturn (*flush) (GstAggregatorPad * aggpad, GstAggregator * aggregator); gboolean (*skip_buffer) (GstAggregatorPad * aggpad, GstAggregator * aggregator, GstBuffer * buffer); };
Optional Called when the pad has received a flush stop, this is the place to flush any information specific to the pad, it allows for individual pads to be flushed while others might not be. |
||
Optional
Called before input buffers are queued in the pad, return |
“emit-signals”
property“emit-signals” gboolean
Enables the emission of signals such as “buffer-consumed”
Flags: Read / Write
Default value: FALSE
Since: 1.16
“buffer-consumed”
signalvoid user_function (GstAggregatorPad *gstaggregatorpad, GstBuffer *arg1, gpointer user_data)
Signals that a buffer was consumed. As aggregator pads store buffers in an internal queue, there is no direct match between input and output buffers at any given time. This signal can be useful to forward metas such as GstVideoTimeCodeMeta or GstVideoCaptionMeta at the right time.
Flags: Run First
Since: 1.16