From 0208b397d1929444aef2dca1780fe7fc1d898157 Mon Sep 17 00:00:00 2001 From: Mingtao Qu Date: Thu, 18 Dec 2014 15:31:08 +0800 Subject: qtmultimedia: Fix crash when use Gstreamer 0.10 plugin In QVideoSurfaceGstSink::get_caps(), when use 0.10 version Gstreamer, It create GstCap with a wrong type (G_TYPE_STRING) of parameter 'format', a g_strcpy exception will be found. This patch fixes the parameter type to use GST_TYPE_FOURCC as expacted. Signed-off-by: Mingtao Qu Signed-off-by: Martin Jansa Signed-off-by: Otavio Salvador --- .../qt5/qtmultimedia/0001-Initial-porting-effort-to-GStreamer-1.0.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-qt/qt5/qtmultimedia/0001-Initial-porting-effort-to-GStreamer-1.0.patch b/recipes-qt/qt5/qtmultimedia/0001-Initial-porting-effort-to-GStreamer-1.0.patch index c32ddaf0..09c4444c 100644 --- a/recipes-qt/qt5/qtmultimedia/0001-Initial-porting-effort-to-GStreamer-1.0.patch +++ b/recipes-qt/qt5/qtmultimedia/0001-Initial-porting-effort-to-GStreamer-1.0.patch @@ -1321,7 +1321,7 @@ index 81d5f60..51c4107 100644 +#if GST_CHECK_VERSION(1,0,0) + "format" , G_TYPE_STRING, gst_video_format_to_string(qt_yuvColorLookup[index].vfmt), +#else -+ "format" , G_TYPE_STRING, qt_yuvColorLookup[index].fourcc, ++ "format" , GST_TYPE_FOURCC, qt_yuvColorLookup[index].fourcc, +#endif NULL)); continue; -- cgit v1.2.3-54-g00ecf