Fix build on big-endian

This commit is contained in:
Wim Taymans 2016-07-07 18:49:04 +02:00
parent c07b764297
commit ea22521355
2 changed files with 38 additions and 1 deletions

View File

@ -0,0 +1,32 @@
From 9144a787dfed694ea646e3f35dcf6b35be1330ea Mon Sep 17 00:00:00 2001
From: Wim Taymans <wtaymans@redhat.com>
Date: Thu, 7 Jul 2016 17:29:34 +0200
Subject: [PATCH] video-converter: fix compilation on big-endian
---
gst-libs/gst/video/video-converter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gst-libs/gst/video/video-converter.c b/gst-libs/gst/video/video-converter.c
index de9bab4..e67a32a 100644
--- a/gst-libs/gst/video/video-converter.c
+++ b/gst-libs/gst/video/video-converter.c
@@ -3575,6 +3575,7 @@ convert_AYUV_RGBA (GstVideoConverter * convert, const GstVideoFrame * src,
convert_fill_border (convert, dest);
}
+#endif
static void
convert_I420_BGRA (GstVideoConverter * convert, const GstVideoFrame * src,
@@ -3687,7 +3688,6 @@ convert_I420_pack_ARGB (GstVideoConverter * convert, const GstVideoFrame * src,
}
convert_fill_border (convert, dest);
}
-#endif
static void
memset_u24 (guint8 * data, guint8 col[3], unsigned int n)
--
2.7.4

View File

@ -6,7 +6,7 @@
Name: gstreamer1-plugins-base
Version: 1.9.1
Release: 1%{?gitcommit:.git%{shortcommit}}%{?dist}
Release: 2%{?gitcommit:.git%{shortcommit}}%{?dist}
Summary: GStreamer streaming media framework base plugins
License: LGPLv2+
@ -19,6 +19,7 @@ Source0: gst-plugins-base-%{version}.tar.xz
Source0: http://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-%{version}.tar.xz
%endif
Patch0: 0001-missing-plugins-Remove-the-mpegaudioversion-field.patch
Patch1: 0001-video-converter-fix-compilation-on-big-endian.patch
BuildRequires: gstreamer1-devel >= %{version}
BuildRequires: gobject-introspection-devel >= 1.31.1
@ -97,6 +98,7 @@ for the GStreamer Base Plugins library.
%prep
%setup -q -n gst-plugins-base-%{version}
%patch0 -p1
%patch1 -p1
%build
%configure \
@ -422,6 +424,9 @@ chrpath --delete $RPM_BUILD_ROOT%{_bindir}/gst-play-1.0
%changelog
* Thu Jul 07 2016 Wim Taymans <wtaymans@redhat.com> - 1.9.1-2
- Fix build on big-endian
* Thu Jul 07 2016 Wim Taymans <wtaymans@redhat.com> - 1.9.1-1
- Update to 1.9.1
- add audio-resampler.h