[packages/gstreamer0.10-vaapi] - updated to 0.5.10 (note: new sonames) - added oldgst patch (some missing gstreamer 0.10 ifdefs)
qboosh
qboosh at pld-linux.org
Fri Jul 3 22:46:18 CEST 2015
commit cc954bd71da91319ce7ca53acdcac0fcb683b075
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Jul 3 22:48:10 2015 +0200
- updated to 0.5.10 (note: new sonames)
- added oldgst patch (some missing gstreamer 0.10 ifdefs)
gstreamer0.10-vaapi-oldgst.patch | 96 ++++++++++++++++++++++++++++++++++++++++
gstreamer0.10-vaapi.spec | 16 ++++---
2 files changed, 105 insertions(+), 7 deletions(-)
---
diff --git a/gstreamer0.10-vaapi.spec b/gstreamer0.10-vaapi.spec
index ca9ee26..e880263 100644
--- a/gstreamer0.10-vaapi.spec
+++ b/gstreamer0.10-vaapi.spec
@@ -5,13 +5,14 @@
Summary: GStreamer 0.10 plugin to support Video Acceleration API
Summary(pl.UTF-8): Wtyczka GStreamera 0.10 obsługująca Video Acceleration API
Name: gstreamer0.10-vaapi
-Version: 0.5.9
+Version: 0.5.10
Release: 1
License: LGPL v2.1+
Group: Libraries
Source0: http://www.freedesktop.org/software/vaapi/releases/gstreamer-vaapi/gstreamer-vaapi-%{version}.tar.bz2
-# Source0-md5: d213d22affbb2d65ebf6107fec69999b
+# Source0-md5: 3bd90b696b644be943450ba0c1497193
Patch0: %{name}-export.patch
+Patch1: %{name}-oldgst.patch
URL: http://www.freedesktop.org/wiki/Software/vaapi/
BuildRequires: Mesa-libGL-devel
BuildRequires: autoconf >= 2.66
@@ -90,6 +91,7 @@ Statyczne biblioteki VA-API GStreamera 0.10.
%prep
%setup -q -n gstreamer-vaapi-%{version}
%patch0 -p1
+%patch1 -p1
%build
%{__libtoolize}
@@ -127,15 +129,15 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_libdir}/libgstcodecparsers_vpx.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libgstcodecparsers_vpx.so.0
%attr(755,root,root) %{_libdir}/libgstvaapi-0.10.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libgstvaapi-0.10.so.5
+%attr(755,root,root) %ghost %{_libdir}/libgstvaapi-0.10.so.6
%attr(755,root,root) %{_libdir}/libgstvaapi-drm-0.10.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libgstvaapi-drm-0.10.so.5
+%attr(755,root,root) %ghost %{_libdir}/libgstvaapi-drm-0.10.so.6
%attr(755,root,root) %{_libdir}/libgstvaapi-glx-0.10.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libgstvaapi-glx-0.10.so.5
+%attr(755,root,root) %ghost %{_libdir}/libgstvaapi-glx-0.10.so.6
%attr(755,root,root) %{_libdir}/libgstvaapi-wayland-0.10.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libgstvaapi-wayland-0.10.so.5
+%attr(755,root,root) %ghost %{_libdir}/libgstvaapi-wayland-0.10.so.6
%attr(755,root,root) %{_libdir}/libgstvaapi-x11-0.10.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libgstvaapi-x11-0.10.so.5
+%attr(755,root,root) %ghost %{_libdir}/libgstvaapi-x11-0.10.so.6
%attr(755,root,root) %{_libdir}/gstreamer-0.10/libgstvaapi.so
%files devel
diff --git a/gstreamer0.10-vaapi-oldgst.patch b/gstreamer0.10-vaapi-oldgst.patch
new file mode 100644
index 0000000..2285af2
--- /dev/null
+++ b/gstreamer0.10-vaapi-oldgst.patch
@@ -0,0 +1,96 @@
+--- gstreamer-vaapi-0.5.10/configure.ac.orig 2015-02-03 09:00:40.000000000 +0100
++++ gstreamer-vaapi-0.5.10/configure.ac 2015-07-03 19:33:34.514450149 +0200
+@@ -309,10 +309,6 @@
+ [gstreamer-interfaces-$GST_PKG_VERSION >= $GST_PLUGINS_BASE_VERSION_REQUIRED])
+ fi
+
+-dnl ... gst_dmabuf_memory_get_fd (gstreamer-allocators)
+-PKG_CHECK_MODULES([GST_ALLOCATORS],
+- [gstreamer-allocators-$GST_PKG_VERSION >= $GST_PLUGINS_BASE_VERSION_REQUIRED])
+-
+ dnl ... GstVideoOverlayComposition (gstreamer-video)
+ PKG_CHECK_MODULES([GST_VIDEO],
+ [gstreamer-video-$GST_PKG_VERSION >= $GST_PLUGINS_BASE_VERSION_REQUIRED])
+--- gstreamer-vaapi-0.5.10/gst/vaapi/gstvaapipluginutil.c.orig 2015-02-03 08:56:36.000000000 +0100
++++ gstreamer-vaapi-0.5.10/gst/vaapi/gstvaapipluginutil.c 2015-07-03 20:26:01.464318084 +0200
+@@ -686,7 +686,9 @@
+
+ vip->interlace_mode = vi.interlace_mode;
+ vip->flags = vi.flags;
++#if GST_CHECK_VERSION(1,0,0)
+ vip->views = vi.views;
++#endif
+ vip->par_n = vi.par_n;
+ vip->par_d = vi.par_d;
+ vip->fps_n = vi.fps_n;
+--- gstreamer-vaapi-0.5.10/gst/vaapi/gstvaapisink.c.orig 2015-02-03 08:56:36.000000000 +0100
++++ gstreamer-vaapi-0.5.10/gst/vaapi/gstvaapisink.c 2015-07-03 20:51:34.547587080 +0200
+@@ -110,8 +110,10 @@
+ static void
+ gst_vaapisink_color_balance_iface_init (GstColorBalanceInterface * iface);
+
++#if GST_CHECK_VERSION(1,0,0)
+ static void
+ gst_vaapisink_navigation_iface_init (GstNavigationInterface * iface);
++#endif
+
+ G_DEFINE_TYPE_WITH_CODE (GstVaapiSink,
+ gst_vaapisink,
+@@ -121,8 +123,11 @@
+ gst_vaapisink_video_overlay_iface_init);
+ G_IMPLEMENT_INTERFACE (GST_TYPE_COLOR_BALANCE,
+ gst_vaapisink_color_balance_iface_init);
++#if GST_CHECK_VERSION(1,0,0)
+ G_IMPLEMENT_INTERFACE (GST_TYPE_NAVIGATION,
+- gst_vaapisink_navigation_iface_init));
++ gst_vaapisink_navigation_iface_init)
++#endif
++ );
+
+ enum
+ {
+@@ -842,6 +847,7 @@
+ /* --- GstNavigation interface --- */
+ /* ------------------------------------------------------------------------ */
+
++#if GST_CHECK_VERSION(1,0,0)
+ static void
+ gst_vaapisink_navigation_send_event (GstNavigation * navigation,
+ GstStructure * structure)
+@@ -888,6 +894,7 @@
+ {
+ iface->send_event = gst_vaapisink_navigation_send_event;
+ }
++#endif
+
+ /* ------------------------------------------------------------------------ */
+ /* --- Common implementation --- */
+--- gstreamer-vaapi-0.5.10/gst/vaapi/gstvaapipluginbase.c.orig 2015-02-03 08:56:36.000000000 +0100
++++ gstreamer-vaapi-0.5.10/gst/vaapi/gstvaapipluginbase.c 2015-07-03 21:10:01.537540623 +0200
+@@ -132,6 +132,7 @@
+ {
+ }
+
++#if GST_CHECK_VERSION(1,1,0)
+ static gboolean
+ plugin_update_sinkpad_info_from_buffer (GstVaapiPluginBase * plugin,
+ GstBuffer * buf)
+@@ -158,7 +159,6 @@
+ return TRUE;
+ }
+
+-#if GST_CHECK_VERSION(1,1,0)
+ static gboolean
+ is_dma_buffer (GstBuffer * buf)
+ {
+--- gstreamer-vaapi-0.5.10/gst/vaapi/gstvaapivideoconverter_glx.c.orig 2015-02-03 08:56:36.000000000 +0100
++++ gstreamer-vaapi-0.5.10/gst/vaapi/gstvaapivideoconverter_glx.c 2015-07-03 21:12:12.477535129 +0200
+@@ -29,6 +29,8 @@
+ #include "gstvaapipluginutil.h"
+ #include "gstvaapivideometa.h"
+
++#include <GL/gl.h>
++
+ #if GST_CHECK_VERSION(1,0,0)
+ typedef gboolean (*GstSurfaceUploadFunction) (GstSurfaceConverter *,
+ GstBuffer *);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gstreamer0.10-vaapi.git/commitdiff/cc954bd71da91319ce7ca53acdcac0fcb683b075
More information about the pld-cvs-commit
mailing list