aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/qt4/qt-4.7.3/0010-phonon-gstreamer-rgb-endianess.patch
blob: d43366c3a42f9fcb56af0933a447610076b34ee5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- a/src/3rdparty/phonon/gstreamer/qwidgetvideosink.cpp
+++ b/src/3rdparty/phonon/gstreamer/qwidgetvideosink.cpp
@@ -18,6 +18,7 @@
 #include <QApplication>
 #include "videowidget.h"
 #include "qwidgetvideosink.h"
+#include <gst/video/video.h>
 
 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 <VideoFormat FMT>
 struct template_factory;