summaryrefslogtreecommitdiffstats
path: root/gst-libs/gst/app/gstappsrc.h
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2008-12-29 16:45:20 +0000
committerWim Taymans <wim.taymans@gmail.com>2008-12-29 16:45:20 +0000
commitf1814feb719a2835d39a256f166623fa4d719298 (patch)
tree620d041b5a0ceade1b46cfac2ec5eb2af46ef9c8 /gst-libs/gst/app/gstappsrc.h
parent21b795ef9e386b2b56f8fab9e04d4beddc85dcde (diff)
downloadgst-plugins-bad-f1814feb719a2835d39a256f166623fa4d719298.tar.gz
gst-plugins-bad-f1814feb719a2835d39a256f166623fa4d719298.tar.bz2
gst-plugins-bad-f1814feb719a2835d39a256f166623fa4d719298.zip
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.
Diffstat (limited to 'gst-libs/gst/app/gstappsrc.h')
-rw-r--r--gst-libs/gst/app/gstappsrc.h6
1 files changed, 6 insertions, 0 deletions
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);