summaryrefslogtreecommitdiff
path: root/gst-libs/gst/adaptivedemux/gstadaptivedemux.h
diff options
context:
space:
mode:
Diffstat (limited to 'gst-libs/gst/adaptivedemux/gstadaptivedemux.h')
-rw-r--r--gst-libs/gst/adaptivedemux/gstadaptivedemux.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/gst-libs/gst/adaptivedemux/gstadaptivedemux.h b/gst-libs/gst/adaptivedemux/gstadaptivedemux.h
index dc8fabe58..3876dc645 100644
--- a/gst-libs/gst/adaptivedemux/gstadaptivedemux.h
+++ b/gst-libs/gst/adaptivedemux/gstadaptivedemux.h
@@ -408,6 +408,19 @@ struct _GstAdaptiveDemuxClass
* @stream.
*/
GstClockTime (*get_presentation_offset) (GstAdaptiveDemux *demux, GstAdaptiveDemuxStream *stream);
+
+ /**
+ * get_period_start_time:
+ * @demux: #GstAdaptiveDemux
+ *
+ * Gets the start time of the current period. Timestamps are resetting to 0
+ * after each period but we have to maintain a continuous stream and running
+ * time so need to know the start time of the current period.
+ *
+ * Return: a #GstClockTime representing the start time of the currently
+ * selected period.
+ */
+ GstClockTime (*get_period_start_time) (GstAdaptiveDemux *demux);
};
GType gst_adaptive_demux_get_type (void);