From c6ae655d0ae620066818aa1f91581084efa32400 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 7 Oct 2005 18:02:14 +0000 Subject: gst/gstevent.*: New event for future idea. Original commit message from CVS: * gst/gstevent.c: (gst_event_new_buffersize), (gst_event_parse_buffersize): * gst/gstevent.h: New event for future idea. --- gst/gstevent.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'gst/gstevent.h') diff --git a/gst/gstevent.h b/gst/gstevent.h index e91577362..8581bb252 100644 --- a/gst/gstevent.h +++ b/gst/gstevent.h @@ -56,6 +56,7 @@ G_BEGIN_DECLS * @GST_EVENT_NEWSEGMENT: A new media segment follows in the dataflow. * @GST_EVENT_TAG: A new set of metadata tags has been found in the stream. * @GST_EVENT_FILLER: Filler for sparse data streams. + * @GST_EVENT_BUFFERSIZE: Notification of buffering requirements * @GST_EVENT_QOS: A quality message. Used to indicate to upstream elements * that the downstream elements are being starved of or * flooded with data. @@ -88,10 +89,11 @@ typedef enum { GST_EVENT_NEWSEGMENT = GST_EVENT_MAKE_TYPE (4, GST_EVDIR_DS | GST_EVSER), GST_EVENT_TAG = GST_EVENT_MAKE_TYPE (5, GST_EVDIR_DS | GST_EVSER), GST_EVENT_FILLER = GST_EVENT_MAKE_TYPE (6, GST_EVDIR_DS | GST_EVSER), + GST_EVENT_BUFFERSIZE = GST_EVENT_MAKE_TYPE (7, GST_EVDIR_DS | GST_EVSER), /* upstream events */ - GST_EVENT_QOS = GST_EVENT_MAKE_TYPE (7, GST_EVDIR_US), - GST_EVENT_SEEK = GST_EVENT_MAKE_TYPE (8, GST_EVDIR_US), - GST_EVENT_NAVIGATION = GST_EVENT_MAKE_TYPE (9, GST_EVDIR_US), + GST_EVENT_QOS = GST_EVENT_MAKE_TYPE (8, GST_EVDIR_US), + GST_EVENT_SEEK = GST_EVENT_MAKE_TYPE (9, GST_EVDIR_US), + GST_EVENT_NAVIGATION = GST_EVENT_MAKE_TYPE (10, GST_EVDIR_US), /* custom events start here */ GST_EVENT_CUSTOM_UP = GST_EVENT_MAKE_TYPE (32, GST_EVDIR_US), @@ -269,6 +271,11 @@ void gst_event_parse_tag (GstEvent *event, GstTagList **taglist); /* FIXME: FILLER events need to be fully specified and implemented */ GstEvent * gst_event_new_filler (void); +/* buffer */ +GstEvent * gst_event_new_buffersize (GstFormat format, gint64 minsize, gint64 maxsize, + gboolean async); +void gst_event_parse_buffersize (GstEvent *event, GstFormat *format, gint64 *minsize, + gint64 *maxsize, gboolean *async); /* QOS events */ /* FIXME: QOS events need to be fully specified and implemented */ -- cgit v1.2.3