diff --git a/src/gsttools/qgstutils.cpp b/src/gsttools/qgstutils.cpp index 24372f7ae242527d927d3f1f3e736d3770a2f564..58dd6e5fef1c037f5f4262ebe8b4f7fed458fe8b 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)); }