From ea22521355d6ebb6df568e83333b3c30a227b5b2 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 7 Jul 2016 18:49:04 +0200 Subject: [PATCH] Fix build on big-endian --- ...verter-fix-compilation-on-big-endian.patch | 32 +++++++++++++++++++ gstreamer1-plugins-base.spec | 7 +++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 0001-video-converter-fix-compilation-on-big-endian.patch diff --git a/0001-video-converter-fix-compilation-on-big-endian.patch b/0001-video-converter-fix-compilation-on-big-endian.patch new file mode 100644 index 0000000..31215a6 --- /dev/null +++ b/0001-video-converter-fix-compilation-on-big-endian.patch @@ -0,0 +1,32 @@ +From 9144a787dfed694ea646e3f35dcf6b35be1330ea Mon Sep 17 00:00:00 2001 +From: Wim Taymans +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 + diff --git a/gstreamer1-plugins-base.spec b/gstreamer1-plugins-base.spec index e9e397a..2e015f0 100644 --- a/gstreamer1-plugins-base.spec +++ b/gstreamer1-plugins-base.spec @@ -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 - 1.9.1-2 +- Fix build on big-endian + * Thu Jul 07 2016 Wim Taymans - 1.9.1-1 - Update to 1.9.1 - add audio-resampler.h