From 46c76e43e73d914b5833e93b2a0fa7b5a8d00002 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 --- .../qt5/qtmultimedia/0001-Initial-porting-effort-to-GStreamer-1.0.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recipes-qt/qt5') 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 ab819f26..8c6c4fa8 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 f3e2d88..a964e82 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