[gstreamermm: 88/167] added wait method to basesink
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gstreamermm: 88/167] added wait method to basesink
- Date: Tue, 3 Sep 2013 19:26:28 +0000 (UTC)
commit 1c946ed647ffd54996eebf54c6b69179e9b9e2cd
Author: Marcin Kolny at Flytronic <marcin kolny flytronic pl>
Date: Tue Jul 30 14:21:07 2013 +0200
added wait method to basesink
gstreamer/src/basesink.ccg | 10 ++++++++++
gstreamer/src/basesink.hg | 4 +++-
2 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/gstreamer/src/basesink.ccg b/gstreamer/src/basesink.ccg
index a5bf6d6..97905ac 100644
--- a/gstreamer/src/basesink.ccg
+++ b/gstreamer/src/basesink.ccg
@@ -41,6 +41,16 @@ bool BaseSink::query_latency(bool& live, bool& upstream_live, ClockTime& min_lat
return result;
}
+ClockReturn BaseSink::wait_clock(ClockTime time)
+{
+ return static_cast<ClockReturn>(gst_base_sink_wait_clock(const_cast<GstBaseSink*>(gobj()),
static_cast<GstClockTime>(time), 0));
+}
+
+FlowReturn BaseSink::wait(ClockTime time)
+{
+ return static_cast<FlowReturn>(gst_base_sink_wait(const_cast<GstBaseSink*>(gobj()),
static_cast<GstClockTime>(time), 0));
+}
+
gboolean BaseSink_Class::set_caps_vfunc_callback(GstBaseSink* self, GstCaps* caps)
{
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
diff --git a/gstreamer/src/basesink.hg b/gstreamer/src/basesink.hg
index 0ba755c..2a6440d 100644
--- a/gstreamer/src/basesink.hg
+++ b/gstreamer/src/basesink.hg
@@ -139,6 +139,8 @@ public:
_WRAP_METHOD(ClockTime get_latency() const, gst_base_sink_get_latency)
_WRAP_METHOD(Gst::FlowReturn do_preroll(const Glib::RefPtr<Gst::MiniObject>& obj),
gst_base_sink_do_preroll)
_WRAP_METHOD(FlowReturn wait_preroll(), gst_base_sink_wait_preroll)
+ _WRAP_METHOD(ClockReturn wait_clock(ClockTime time, ClockTimeDiff& jitter), gst_base_sink_wait_clock)
+ _WRAP_METHOD(FlowReturn wait(ClockTime time, ClockTimeDiff& jitter), gst_base_sink_wait)
/** This function will block until time is reached. It is usually called by
* subclasses that use their own internal synchronisation.
@@ -179,7 +181,7 @@ public:
* @param time The running time to be reached.
* @return Gst::FlowReturn.
*/
- FlowReturn wait_eos(ClockTime time);
+ FlowReturn wait(ClockTime time);
_WRAP_METHOD(void set_sync(bool sync), gst_base_sink_set_sync)
_WRAP_METHOD(bool get_sync() const, gst_base_sink_get_sync)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]