From: Michael Olbrich Date: Thu, 3 Feb 2011 11:24:22 +0100 Subject: [PATCH] phonon: fix colors for video on qgraphicsview patch from http://bugreports.qt.nokia.com/browse/QTBUG-8737 Signed-off-by: Michael Olbrich --- src/3rdparty/phonon/gstreamer/qwidgetvideosink.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/3rdparty/phonon/gstreamer/qwidgetvideosink.cpp b/src/3rdparty/phonon/gstreamer/qwidgetvideosink.cpp index 89d5a9db9e63..85080014b1e7 100644 --- 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;