mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
Added buffer list support.
This commit is contained in:
parent
8927dbc98b
commit
fb0fd53212
1 changed files with 10 additions and 7 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue