[gstreamermm] Gst::AudioClock: auto generate some audioclock methods
- From: Marcin Kolny <mkolny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gstreamermm] Gst::AudioClock: auto generate some audioclock methods
- Date: Sat, 10 Jun 2017 14:13:16 +0000 (UTC)
commit 167eeba7757027e5faf8cdb59030ca094af04763
Author: Marcin Kolny <marcin kolny gmail com>
Date: Sat Jun 10 15:11:22 2017 +0100
Gst::AudioClock: auto generate some audioclock methods
Those methods used to have object of GstClock type as a
first argument, so had to be wrapped manually. It has been
fixed inGStreamer (https://bugzilla.gnome.org/show_bug.cgi?id=756628)
in version 1.12.0
https://bugzilla.gnome.org/show_bug.cgi?id=783628
gstreamer/src/audioclock.ccg | 15 ---------------
gstreamer/src/audioclock.hg | 13 +++----------
2 files changed, 3 insertions(+), 25 deletions(-)
---
diff --git a/gstreamer/src/audioclock.ccg b/gstreamer/src/audioclock.ccg
index 986dba7..cb04fb0 100644
--- a/gstreamer/src/audioclock.ccg
+++ b/gstreamer/src/audioclock.ccg
@@ -64,19 +64,4 @@ AudioClock::AudioClock(const Glib::ustring& name, const SlotGetTime& time_slot)
gobj()->user_data = m_slot.get();
}
-Gst::ClockTime AudioClock::adjust(Gst::ClockTime time)
-{
- return static_cast<Gst::ClockTime>(gst_audio_clock_adjust(GST_CLOCK_CAST(gobj()),
static_cast<GstClockTime>(time)));
-}
-
-Gst::ClockTime AudioClock::get_time() const
-{
- return static_cast<Gst::ClockTime>(gst_audio_clock_get_time(GST_CLOCK_CAST(gobj())));
-}
-
-void AudioClock::invalidate()
-{
- gst_audio_clock_invalidate(GST_CLOCK_CAST(gobj()));
-}
-
} //namespace Gst
diff --git a/gstreamer/src/audioclock.hg b/gstreamer/src/audioclock.hg
index e7b7187..af0d578 100644
--- a/gstreamer/src/audioclock.hg
+++ b/gstreamer/src/audioclock.hg
@@ -66,18 +66,11 @@ public:
_WRAP_METHOD(void reset(Gst::ClockTime time), gst_audio_clock_reset)
- // TODO methods below get GstClock as a first argument,
- // so have to be wrapped manually. It has been fixed in
- // GStreamer (https://bugzilla.gnome.org/show_bug.cgi?id=756628)
- // but patch is not available in 1.8.0 version.
- _WRAP_METHOD_DOCS_ONLY(gst_audio_clock_adjust)
- Gst::ClockTime adjust(Gst::ClockTime time);
+ _WRAP_METHOD(Gst::ClockTime adjust(Gst::ClockTime time), gst_audio_clock_adjust)
- _WRAP_METHOD_DOCS_ONLY(gst_audio_clock_get_time)
- Gst::ClockTime get_time() const;
+ _WRAP_METHOD(Gst::ClockTime get_time() const, gst_audio_clock_get_time)
- _WRAP_METHOD_DOCS_ONLY(gst_audio_clock_invalidate)
- void invalidate();
+ _WRAP_METHOD(void invalidate(), gst_audio_clock_invalidate)
#ifndef DOXYGEN_SHOULD_SKIP_THIS
private:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]