diff options
author | Mingtao Qu <zarelaky@hotmail.com> | 2014-12-18 15:31:08 +0800 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-12-31 16:24:44 +0100 |
commit | 46c76e43e73d914b5833e93b2a0fa7b5a8d00002 (patch) | |
tree | 411ca3ea8f2e07551e6d03341342cb1f798a6bf2 | |
parent | bb6049fbe1808a1e33085740672e8fb7fc1bef20 (diff) | |
download | meta-qt5-46c76e43e73d914b5833e93b2a0fa7b5a8d00002.tar.gz |
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 <zarelaky@hotmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r-- | recipes-qt/qt5/qtmultimedia/0001-Initial-porting-effort-to-GStreamer-1.0.patch | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
1321 | +#if GST_CHECK_VERSION(1,0,0) | 1321 | +#if GST_CHECK_VERSION(1,0,0) |
1322 | + "format" , G_TYPE_STRING, gst_video_format_to_string(qt_yuvColorLookup[index].vfmt), | 1322 | + "format" , G_TYPE_STRING, gst_video_format_to_string(qt_yuvColorLookup[index].vfmt), |
1323 | +#else | 1323 | +#else |
1324 | + "format" , G_TYPE_STRING, qt_yuvColorLookup[index].fourcc, | 1324 | + "format" , GST_TYPE_FOURCC, qt_yuvColorLookup[index].fourcc, |
1325 | +#endif | 1325 | +#endif |
1326 | NULL)); | 1326 | NULL)); |
1327 | continue; | 1327 | continue; |