diff options
Diffstat (limited to 'gst-libs/gst/app/gstappsink.h')
-rw-r--r-- | gst-libs/gst/app/gstappsink.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/gst-libs/gst/app/gstappsink.h b/gst-libs/gst/app/gstappsink.h index 92a017be..9ac0dc84 100644 --- a/gst-libs/gst/app/gstappsink.h +++ b/gst-libs/gst/app/gstappsink.h @@ -51,21 +51,31 @@ struct _GstAppSink GQueue *queue; GstBuffer *preroll; gboolean started; - gboolean end_of_stream; + gboolean is_eos; }; struct _GstAppSinkClass { GstBaseSinkClass basesink_class; + + /* signals */ + gboolean (*eos) (GstAppSink *sink); + gboolean (*new_preroll) (GstAppSink *sink); + gboolean (*new_buffer) (GstAppSink *sink); + + /* actions */ + GstBuffer * (*pull_preroll) (GstAppSink *sink); + GstBuffer * (*pull_buffer) (GstAppSink *sink); }; GType gst_app_sink_get_type(void); GST_DEBUG_CATEGORY_EXTERN (app_sink_debug); -void gst_app_sink_set_caps (GstAppSink *appsink, GstCaps *caps); +void gst_app_sink_set_caps (GstAppSink *appsink, const GstCaps *caps); +GstCaps * gst_app_sink_get_caps (GstAppSink *appsink); -gboolean gst_app_sink_end_of_stream (GstAppSink *appsink); +gboolean gst_app_sink_is_eos (GstAppSink *appsink); GstBuffer * gst_app_sink_pull_preroll (GstAppSink *appsink); GstBuffer * gst_app_sink_pull_buffer (GstAppSink *appsink); |