From f1814feb719a2835d39a256f166623fa4d719298 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 29 Dec 2008 16:45:20 +0000 Subject: gst-libs/gst/app/gstappsrc.*: Add properties and methods to configure and retrieve the min and max latencies. Original commit message from CVS: * gst-libs/gst/app/gstappsrc.c: (gst_app_src_class_init), (gst_app_src_init), (gst_app_src_set_property), (gst_app_src_get_property), (gst_app_src_query), (gst_app_src_set_latencies), (gst_app_src_set_latency), (gst_app_src_get_latency), (gst_app_src_push_buffer_full): * gst-libs/gst/app/gstappsrc.h: Add properties and methods to configure and retrieve the min and max latencies. --- gst-libs/gst/app/gstappsrc.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gst-libs/gst/app/gstappsrc.h') diff --git a/gst-libs/gst/app/gstappsrc.h b/gst-libs/gst/app/gstappsrc.h index e23fa66b..eff3e422 100644 --- a/gst-libs/gst/app/gstappsrc.h +++ b/gst-libs/gst/app/gstappsrc.h @@ -79,6 +79,9 @@ struct _GstAppSrc guint64 queued_bytes; guint64 offset; GstAppStreamType current_type; + + guint64 min_latency; + guint64 max_latency; }; struct _GstAppSrcClass @@ -111,6 +114,9 @@ GstAppStreamType gst_app_src_get_stream_type (GstAppSrc *appsrc); void gst_app_src_set_max_bytes (GstAppSrc *appsrc, guint64 max); guint64 gst_app_src_get_max_bytes (GstAppSrc *appsrc); +void gst_app_src_set_latency (GstAppSrc *appsrc, guint64 min, guint64 max); +void gst_app_src_get_latency (GstAppSrc *appsrc, guint64 *min, guint64 *max); + GstFlowReturn gst_app_src_push_buffer (GstAppSrc *appsrc, GstBuffer *buffer); GstFlowReturn gst_app_src_end_of_stream (GstAppSrc *appsrc); -- cgit v1.2.1