summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVal Doroshchuk <valentyn.doroshchuk@qt.io>2019-02-11 11:40:22 +0100
committerVaL Doroshchuk <valentyn.doroshchuk@qt.io>2019-02-14 08:08:31 +0000
commit4e47d0a710452cfba62a8a3c2c2ce5c118bc00fe (patch)
treed993242c0b05f0edb69e950c66315b56d69093b5
parenta7f01cea43a16a9b2b06ab3a8ff3b62b8edce5cd (diff)
Gstreamer: Fix compilation error with 0.10 version
Task-number: QTBUG-73740 Change-Id: I1de087b63f65bab39351d5446254a8d1832e88c3 Reviewed-by: Andy Shaw <andy.shaw@qt.io>
-rw-r--r--src/gsttools/qgstutils.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gsttools/qgstutils.cpp b/src/gsttools/qgstutils.cpp
index 24372f7ae..58dd6e5fe 100644
--- a/src/gsttools/qgstutils.cpp
+++ b/src/gsttools/qgstutils.cpp
@@ -1309,8 +1309,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)
@@ -1322,9 +1321,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));
}