From: Marc Reilly Date: Mon, 28 Feb 2011 07:27:57 +0000 (+0000) Subject: qt-4.7.1: patch gstreamer phonon plugin to use host rgb endianess X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bbb63ad7f2b8b78f3228a5556b84f78d14d991f;p=openembedded.git qt-4.7.1: patch gstreamer phonon plugin to use host rgb endianess This patch was obtained from Nokia bug tracker. Without it, the R and B channels are wrong when playing on ARM system. Signed-off-by: Marc Reilly Signed-off-by: Tom Rini --- diff --git a/recipes/qt4/qt-4.7.1.inc b/recipes/qt4/qt-4.7.1.inc index ef54753172..be7275dbd8 100644 --- a/recipes/qt4/qt-4.7.1.inc +++ b/recipes/qt4/qt-4.7.1.inc @@ -9,6 +9,7 @@ SRC_URI = "\ file://hack-out-pg2-4.7.0.patch \ file://0006-freetype-host-includes.patch \ file://0001-Added-Openembedded-crossarch-option.patch \ + file://0010-phonon-gstreamer-rgb-endianess.patch \ file://g++.conf \ file://linux.conf \ " diff --git a/recipes/qt4/qt-4.7.1/0010-phonon-gstreamer-rgb-endianess.patch b/recipes/qt4/qt-4.7.1/0010-phonon-gstreamer-rgb-endianess.patch new file mode 100644 index 0000000000..d43366c3a4 --- /dev/null +++ b/recipes/qt4/qt-4.7.1/0010-phonon-gstreamer-rgb-endianess.patch @@ -0,0 +1,23 @@ +--- a/src/3rdparty/phonon/gstreamer/qwidgetvideosink.cpp ++++ b/src/3rdparty/phonon/gstreamer/qwidgetvideosink.cpp +@@ -18,6 +18,7 @@ + #include + #include "videowidget.h" + #include "qwidgetvideosink.h" ++#include + + QT_BEGIN_NAMESPACE + +@@ -106,11 +107,7 @@ static GstStaticPadTemplate template_factory_rgb = + GST_STATIC_PAD_TEMPLATE("sink", + GST_PAD_SINK, + GST_PAD_ALWAYS, +- GST_STATIC_CAPS("video/x-raw-rgb, " +- "framerate = (fraction) [ 0, MAX ], " +- "width = (int) [ 1, MAX ], " +- "height = (int) [ 1, MAX ]," +- "bpp = (int) 32")); ++ GST_STATIC_CAPS(GST_VIDEO_CAPS_xRGB_HOST_ENDIAN)); + + template + struct template_factory;