diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gsttools/qgstutils.cpp | 8 | ||||
-rw-r--r-- | src/multimediawidgets/qvideowidget.cpp | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/gsttools/qgstutils.cpp b/src/gsttools/qgstutils.cpp index bce453ac1..06f277766 100644 --- a/src/gsttools/qgstutils.cpp +++ b/src/gsttools/qgstutils.cpp @@ -1370,8 +1370,7 @@ void QGstUtils::setMetaData(GstBin *bin, const QMap<QByteArray, QVariant> &data) GstCaps *QGstUtils::videoFilterCaps() { - static GstStaticCaps staticCaps = { - NULL, + const char *caps = #if GST_CHECK_VERSION(1,2,0) "video/x-raw(ANY);" #elif GST_CHECK_VERSION(1,0,0) @@ -1383,9 +1382,8 @@ GstCaps *QGstUtils::videoFilterCaps() "video/x-android-buffer;" #endif "image/jpeg;" - "video/x-h264", - GST_PADDING_INIT - }; + "video/x-h264"; + static GstStaticCaps staticCaps = GST_STATIC_CAPS(caps); return gst_caps_make_writable(gst_static_caps_get(&staticCaps)); } diff --git a/src/multimediawidgets/qvideowidget.cpp b/src/multimediawidgets/qvideowidget.cpp index ee40151af..7d26a8534 100644 --- a/src/multimediawidgets/qvideowidget.cpp +++ b/src/multimediawidgets/qvideowidget.cpp @@ -57,6 +57,10 @@ #include <qwindow.h> #include <private/qhighdpiscaling_p.h> +#ifdef Q_OS_WIN +#include <QtCore/qt_windows.h> +#endif + using namespace Qt; QT_BEGIN_NAMESPACE |