summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2020-06-02 12:25:00 +0300
committerThibault Saunier <tsaunier@igalia.com>2020-06-04 15:49:24 -0400
commitea32d1741cdb6a41a63d9398790e3dc167d2cf51 (patch)
tree951d0dadd917d1b02fde4ef88f46e7875f5651e9 /libs
parent3e37b0ab82bc77e52777882f09a28b70ab31fd09 (diff)
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.
Diffstat (limited to 'libs')
-rw-r--r--libs/gst/base/gstaggregator.c9
-rw-r--r--libs/gst/base/gstaggregator.h20
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)