diff options
author | Mingtao Qu <zarelaky@hotmail.com> | 2014-12-18 15:31:08 +0800 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2015-01-05 13:11:09 -0200 |
commit | 0208b397d1929444aef2dca1780fe7fc1d898157 (patch) | |
tree | c79d34e595028ec0cbcf594c755e3f175cfd224f | |
parent | f25f7454b2d9af6761f6a444038f1c16e961bb5c (diff) | |
download | meta-qt5-0208b397d1929444aef2dca1780fe7fc1d898157.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>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-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 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 | |||
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; |