summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 0000000000..cea07c930d
--- /dev/null
+++ b/meta/recipes-qt/qt4/files/0001-gstvideoconnector-fixed-buffers-allocation.patch
@@ -0,0 +1,32 @@
1From b308508b49afa9a129b4e4589c57cd107d1320b8 Mon Sep 17 00:00:00 2001
2From: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
3Date: Fri, 6 May 2011 10:35:11 +1000
4Subject: [PATCH] gstvideoconnector: fixed buffers allocation
5
6It should not be necessary, but at least theora video decoder doesn't
7iniatilize *buf, while gst_pad_alloc_buffer relies on buf being NULL.
8
9Task-number: QTMOBILITY-1611
10Reviewed-by: Michael Goddard
11---
12 plugins/multimedia/gstreamer/gstvideoconnector.c | 4 ++++
13 1 files changed, 4 insertions(+), 0 deletions(-)
14
15diff --git a/plugins/multimedia/gstreamer/gstvideoconnector.c b/plugins/multimedia/gstreamer/gstvideoconnector.c
16index ddf68e0..9f8ceae 100644
17--- a/plugins/multimedia/gstreamer/gstvideoconnector.c
18+++ b/plugins/multimedia/gstreamer/gstvideoconnector.c
19@@ -186,6 +186,10 @@ gst_video_connector_buffer_alloc (GstPad * pad, guint64 offset, guint size,
20 GstFlowReturn res = GST_FLOW_OK;
21 element = GST_VIDEO_CONNECTOR (GST_PAD_PARENT (pad));
22
23+ if (!buf)
24+ return GST_FLOW_ERROR;
25+ *buf = NULL;
26+
27 GST_OBJECT_LOCK (element);
28 gst_object_ref(element->srcpad);
29 GST_OBJECT_UNLOCK (element);
30--
311.7.4.1
32