From ea32d1741cdb6a41a63d9398790e3dc167d2cf51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 2 Jun 2020 12:25:00 +0300 Subject: [PATCH] aggregator: Export GstAggregatorStartTimeSelection in the header and document it It is used by one of the aggregator properties and was private in the source file before. --- libs/gst/base/gstaggregator.c | 9 +-------- libs/gst/base/gstaggregator.h | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/libs/gst/base/gstaggregator.c b/libs/gst/base/gstaggregator.c index a4c00ca673..c41e463777 100644 --- a/libs/gst/base/gstaggregator.c +++ b/libs/gst/base/gstaggregator.c @@ -91,14 +91,7 @@ #include "gstaggregator.h" -typedef enum -{ - GST_AGGREGATOR_START_TIME_SELECTION_ZERO, - GST_AGGREGATOR_START_TIME_SELECTION_FIRST, - GST_AGGREGATOR_START_TIME_SELECTION_SET -} GstAggregatorStartTimeSelection; - -static GType +GType gst_aggregator_start_time_selection_get_type (void) { static GType gtype = 0; diff --git a/libs/gst/base/gstaggregator.h b/libs/gst/base/gstaggregator.h index 825922cb18..a76a87a196 100644 --- a/libs/gst/base/gstaggregator.h +++ b/libs/gst/base/gstaggregator.h @@ -389,6 +389,26 @@ GST_BASE_API void gst_aggregator_update_segment (GstAggregator * self, const GstSegment * segment); +/** + * GstAggregatorStartTimeSelection: + * @GST_AGGREGATOR_START_TIME_SELECTION_ZERO: Start at running time 0. + * @GST_AGGREGATOR_START_TIME_SELECTION_FIRST: Start at the running time of + * the first buffer that is received. + * @GST_AGGREGATOR_START_TIME_SELECTION_SET: Start at the running time + * selected by the `start-time` property. + * + * Since: 1.14 + */ +typedef enum +{ + GST_AGGREGATOR_START_TIME_SELECTION_ZERO, + GST_AGGREGATOR_START_TIME_SELECTION_FIRST, + GST_AGGREGATOR_START_TIME_SELECTION_SET +} GstAggregatorStartTimeSelection; + +GST_BASE_API +GType gst_aggregator_start_time_selection_get_type (void); + G_END_DECLS G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstAggregator, gst_object_unref)