diff --git a/srcpkgs/gstreamermm/patches/fix-build-with-gstreamer1.12.patch b/srcpkgs/gstreamermm/patches/fix-build-with-gstreamer1.12.patch index fbfa213a6e6..405d9865da2 100644 --- a/srcpkgs/gstreamermm/patches/fix-build-with-gstreamer1.12.patch +++ b/srcpkgs/gstreamermm/patches/fix-build-with-gstreamer1.12.patch @@ -13,33 +13,3 @@ Last-update: 2017-07-01 #include #include -@@ -76,17 +77,29 @@ AudioClock::AudioClock(const Glib::ustri - - Gst::ClockTime AudioClock::adjust(Gst::ClockTime time) - { -+#if GST_VERSION_MAJOR == 1 && GST_VERSION_MINOR >= 12 -+ return ((Gst::ClockTime)(gst_audio_clock_adjust(gobj(), ((GstClockTime)(time))))); -+#else - return static_cast(gst_audio_clock_adjust(GST_CLOCK_CAST(gobj()), static_cast(time))); -+#endif - } - - Gst::ClockTime AudioClock::get_time() const - { -+#if GST_VERSION_MAJOR == 1 && GST_VERSION_MINOR >= 12 -+ return ((Gst::ClockTime)(gst_audio_clock_get_time(const_cast(gobj())))); -+#else - return static_cast(gst_audio_clock_get_time(GST_CLOCK_CAST(gobj()))); -+#endif - } - - void AudioClock::invalidate() - { -+#if GST_VERSION_MAJOR == 1 && GST_VERSION_MINOR >= 12 -+ gst_audio_clock_invalidate(gobj()); -+#else - gst_audio_clock_invalidate(GST_CLOCK_CAST(gobj())); -+#endif - } - - } //namespace Gst diff --git a/srcpkgs/gstreamermm/template b/srcpkgs/gstreamermm/template index a8cdc83eba1..db2c1a89ec3 100644 --- a/srcpkgs/gstreamermm/template +++ b/srcpkgs/gstreamermm/template @@ -1,6 +1,6 @@ # Template file for 'gstreamermm' pkgname=gstreamermm -version=1.8.0 +version=1.10.0 revision=1 build_style=gnu-configure hostmakedepends="pkg-config perl" @@ -10,8 +10,8 @@ short_desc="GStreamer API C++ bindings" maintainer="newbluemoon " homepage="https://gstreamer.freedesktop.org/bindings/cplusplus.html" license="GPL-2, GPL-2.1" -distfiles="${GNOME_SITE}/${pkgname}/1.8/${pkgname}-${version}.tar.xz" -checksum=3ee3c1457ea2c32c1e17b784faa828f414ba27a9731532bf26d137a2ad999a44 +distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz" +checksum=be58fe9ef7d7e392568ec85e80a84f4730adbf91fb0355ff7d7c616675ea8d60 post_install() { vlicense COPYING