From: Branko Subasic Date: Wed, 17 Jun 2009 07:23:11 +0000 (+0200) Subject: Added buffer list support. X-Git-Tag: RELEASE-0.10.24~95 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb0fd53212751080e266a2bf9d9c5f7772ab1425;p=platform%2Fupstream%2Fgst-plugins-base.git Added buffer list support. --- diff --git a/gst-libs/gst/app/gstappsink.h b/gst-libs/gst/app/gstappsink.h index d16a8601e..f3df30526 100644 --- a/gst-libs/gst/app/gstappsink.h +++ b/gst-libs/gst/app/gstappsink.h @@ -64,12 +64,13 @@ typedef struct _GstAppSinkPrivate GstAppSinkPrivate; * Since: 0.10.23 */ typedef struct { - void (*eos) (GstAppSink *sink, gpointer user_data); - GstFlowReturn (*new_preroll) (GstAppSink *sink, gpointer user_data); - GstFlowReturn (*new_buffer) (GstAppSink *sink, gpointer user_data); + void (*eos) (GstAppSink *sink, gpointer user_data); + GstFlowReturn (*new_preroll) (GstAppSink *sink, gpointer user_data); + GstFlowReturn (*new_buffer) (GstAppSink *sink, gpointer user_data); + GstFlowReturn (*new_buffer_list) (GstAppSink *sink, gpointer user_data); /*< private >*/ - gpointer _gst_reserved[GST_PADDING]; + gpointer _gst_reserved[GST_PADDING - 1]; } GstAppSinkCallbacks; struct _GstAppSink @@ -93,11 +94,12 @@ struct _GstAppSinkClass void (*new_buffer) (GstAppSink *sink); /* actions */ - GstBuffer * (*pull_preroll) (GstAppSink *sink); - GstBuffer * (*pull_buffer) (GstAppSink *sink); + GstBuffer * (*pull_preroll) (GstAppSink *sink); + GstBuffer * (*pull_buffer) (GstAppSink *sink); + GstBufferList * (*pull_buffer_list) (GstAppSink *sink); /*< private >*/ - gpointer _gst_reserved[GST_PADDING]; + gpointer _gst_reserved[GST_PADDING - 1]; }; GType gst_app_sink_get_type(void); @@ -118,6 +120,7 @@ gboolean gst_app_sink_get_drop (GstAppSink *appsink); GstBuffer * gst_app_sink_pull_preroll (GstAppSink *appsink); GstBuffer * gst_app_sink_pull_buffer (GstAppSink *appsink); +GstBufferList * gst_app_sink_pull_buffer_list (GstAppSink *appsink); void gst_app_sink_set_callbacks (GstAppSink * appsink, GstAppSinkCallbacks *callbacks,