summaryrefslogtreecommitdiff
path: root/meta/recipes-qt
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-29 14:36:09 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-29 14:36:09 +0000
commit177df2c51927f44e3536856f4604364b38695bc2 (patch)
tree40a33efb9e2dd0ee7105b4f240a3ac7cd74500b3 /meta/recipes-qt
parent6b1afd1d21a565b8cbb8e5c0579a1ba9299591f1 (diff)
downloadopenembedded-core-177df2c51927f44e3536856f4604364b38695bc2.tar.gz
openembedded-core-177df2c51927f44e3536856f4604364b38695bc2.tar.bz2
openembedded-core-177df2c51927f44e3536856f4604364b38695bc2.tar.xz
openembedded-core-177df2c51927f44e3536856f4604364b38695bc2.zip
qt-mobility: Add missing patch
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-qt')
-rw-r--r--meta/recipes-qt/qt4/files/0001-gstvideoconnector-fixed-buffers-allocation.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-qt/qt4/files/0001-gstvideoconnector-fixed-buffers-allocation.patch b/meta/recipes-qt/qt4/files/0001-gstvideoconnector-fixed-buffers-allocation.patch
new file mode 100644
index 000000000..cea07c930
--- /dev/null
+++ b/meta/recipes-qt/qt4/files/0001-gstvideoconnector-fixed-buffers-allocation.patch
@@ -0,0 +1,32 @@
+From b308508b49afa9a129b4e4589c57cd107d1320b8 Mon Sep 17 00:00:00 2001
+From: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
+Date: Fri, 6 May 2011 10:35:11 +1000
+Subject: [PATCH] gstvideoconnector: fixed buffers allocation
+
+It should not be necessary, but at least theora video decoder doesn't
+iniatilize *buf, while gst_pad_alloc_buffer relies on buf being NULL.
+
+Task-number: QTMOBILITY-1611
+Reviewed-by: Michael Goddard
+---
+ plugins/multimedia/gstreamer/gstvideoconnector.c | 4 ++++
+ 1 files changed, 4 insertions(+), 0 deletions(-)
+
+diff --git a/plugins/multimedia/gstreamer/gstvideoconnector.c b/plugins/multimedia/gstreamer/gstvideoconnector.c
+index ddf68e0..9f8ceae 100644
+--- a/plugins/multimedia/gstreamer/gstvideoconnector.c
++++ b/plugins/multimedia/gstreamer/gstvideoconnector.c
+@@ -186,6 +186,10 @@ gst_video_connector_buffer_alloc (GstPad * pad, guint64 offset, guint size,
+ GstFlowReturn res = GST_FLOW_OK;
+ element = GST_VIDEO_CONNECTOR (GST_PAD_PARENT (pad));
+
++ if (!buf)
++ return GST_FLOW_ERROR;
++ *buf = NULL;
++
+ GST_OBJECT_LOCK (element);
+ gst_object_ref(element->srcpad);
+ GST_OBJECT_UNLOCK (element);
+--
+1.7.4.1
+