mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
gstreamermm: update to 1.10.0. (#8440)
Wasn't thoroughly tested for side-effects
This commit is contained in:
parent
4a29ebca8b
commit
872cb6e413
2 changed files with 3 additions and 33 deletions
|
@ -13,33 +13,3 @@ Last-update: 2017-07-01
|
||||||
|
|
||||||
#include <gstreamermm/audioclock.h>
|
#include <gstreamermm/audioclock.h>
|
||||||
#include <gstreamermm/private/audioclock_p.h>
|
#include <gstreamermm/private/audioclock_p.h>
|
||||||
@@ -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::ClockTime>(gst_audio_clock_adjust(GST_CLOCK_CAST(gobj()), static_cast<GstClockTime>(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<GstAudioClock*>(gobj()))));
|
|
||||||
+#else
|
|
||||||
return static_cast<Gst::ClockTime>(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
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'gstreamermm'
|
# Template file for 'gstreamermm'
|
||||||
pkgname=gstreamermm
|
pkgname=gstreamermm
|
||||||
version=1.8.0
|
version=1.10.0
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="pkg-config perl"
|
hostmakedepends="pkg-config perl"
|
||||||
|
@ -10,8 +10,8 @@ short_desc="GStreamer API C++ bindings"
|
||||||
maintainer="newbluemoon <blaumolch@mailbox.org>"
|
maintainer="newbluemoon <blaumolch@mailbox.org>"
|
||||||
homepage="https://gstreamer.freedesktop.org/bindings/cplusplus.html"
|
homepage="https://gstreamer.freedesktop.org/bindings/cplusplus.html"
|
||||||
license="GPL-2, GPL-2.1"
|
license="GPL-2, GPL-2.1"
|
||||||
distfiles="${GNOME_SITE}/${pkgname}/1.8/${pkgname}-${version}.tar.xz"
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
||||||
checksum=3ee3c1457ea2c32c1e17b784faa828f414ba27a9731532bf26d137a2ad999a44
|
checksum=be58fe9ef7d7e392568ec85e80a84f4730adbf91fb0355ff7d7c616675ea8d60
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense COPYING
|
vlicense COPYING
|
||||||
|
|
Loading…
Add table
Reference in a new issue