diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2007-08-14 17:38:05 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2007-08-14 17:38:05 +0000 |
commit | 5111980fa807427b281d8bebc9d4b2392646ad15 (patch) | |
tree | b7377381a5fc6e6e60c29271bc8fc46c93a7a1e8 /gst-libs/gst/app/gstappsink.h | |
parent | a2dbc1182cf6b170507b9578eaba097a921d620a (diff) | |
download | gst-plugins-bad-5111980fa807427b281d8bebc9d4b2392646ad15.tar.gz gst-plugins-bad-5111980fa807427b281d8bebc9d4b2392646ad15.tar.bz2 gst-plugins-bad-5111980fa807427b281d8bebc9d4b2392646ad15.zip |
gst-libs/gst/app/gstappsink.*: Make love to appsink.
Original commit message from CVS:
* gst-libs/gst/app/gstappsink.c: (gst_app_sink_base_init),
(gst_app_sink_class_init), (gst_app_sink_dispose),
(gst_app_sink_flush_unlocked), (gst_app_sink_start),
(gst_app_sink_stop), (gst_app_sink_event), (gst_app_sink_preroll),
(gst_app_sink_render), (gst_app_sink_get_caps),
(gst_app_sink_set_caps), (gst_app_sink_end_of_stream),
(gst_app_sink_pull_preroll), (gst_app_sink_pull_buffer):
* gst-libs/gst/app/gstappsink.h:
Make love to appsink.
Make it support pulling of the preroll buffer.
Add docs and debug statements.
Fix some races wrt to EOS handling and stopping.
Implement getcaps.
Implement FLUSHING.
API: gst_app_sink_pull_preroll()
Diffstat (limited to 'gst-libs/gst/app/gstappsink.h')
-rw-r--r-- | gst-libs/gst/app/gstappsink.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gst-libs/gst/app/gstappsink.h b/gst-libs/gst/app/gstappsink.h index 2873e363..92a017be 100644 --- a/gst-libs/gst/app/gstappsink.h +++ b/gst-libs/gst/app/gstappsink.h @@ -49,6 +49,8 @@ struct _GstAppSink GCond *cond; GMutex *mutex; GQueue *queue; + GstBuffer *preroll; + gboolean started; gboolean end_of_stream; }; @@ -61,9 +63,12 @@ GType gst_app_sink_get_type(void); GST_DEBUG_CATEGORY_EXTERN (app_sink_debug); -void gst_app_sink_set_caps (GstAppSink *appsink, GstCaps *caps); -gboolean gst_app_sink_end_of_stream (GstAppSink *appsink); -GstBuffer *gst_app_sink_pull_buffer (GstAppSink *appsink); +void gst_app_sink_set_caps (GstAppSink *appsink, GstCaps *caps); + +gboolean gst_app_sink_end_of_stream (GstAppSink *appsink); + +GstBuffer * gst_app_sink_pull_preroll (GstAppSink *appsink); +GstBuffer * gst_app_sink_pull_buffer (GstAppSink *appsink); G_END_DECLS |