[qtmultimedia] fix capsForFormats to generate caps permitting caps features. Fixes JB#29720

This commit is contained in:
Mohammed Hassan
2015-06-08 16:50:18 +03:00
committed by Martin Jones
parent 4806e55411
commit a756991a42

View File

@@ -1118,6 +1118,8 @@ GstCaps *QGstUtils::capsForFormats(const QList<QVideoFrame::PixelFormat> &format
"video/x-raw", "video/x-raw",
"format" , G_TYPE_STRING, gst_video_format_to_string(qt_videoFormatLookup[index].gstFormat), "format" , G_TYPE_STRING, gst_video_format_to_string(qt_videoFormatLookup[index].gstFormat),
NULL)); NULL));
gst_caps_set_features(caps, gst_caps_get_size(caps) - 1, gst_caps_features_new_any());
} }
} }
#else #else