diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-29 14:36:09 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-29 14:36:18 +0000 |
commit | cf02474bda67f4f1043b2e95e1b371b2354585a7 (patch) | |
tree | b0b4a6d87be64df219388811d395297b909f8a4c /meta/recipes-qt | |
parent | 9c8d335a1e0dd7e76b189a9b34b77bb99f121e9e (diff) | |
download | poky-cf02474bda67f4f1043b2e95e1b371b2354585a7.tar.gz |
qt-mobility: Add missing patch
(From OE-Core rev: 177df2c51927f44e3536856f4604364b38695bc2)
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.patch | 32 |
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 @@ | |||
1 | From b308508b49afa9a129b4e4589c57cd107d1320b8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com> | ||
3 | Date: Fri, 6 May 2011 10:35:11 +1000 | ||
4 | Subject: [PATCH] gstvideoconnector: fixed buffers allocation | ||
5 | |||
6 | It should not be necessary, but at least theora video decoder doesn't | ||
7 | iniatilize *buf, while gst_pad_alloc_buffer relies on buf being NULL. | ||
8 | |||
9 | Task-number: QTMOBILITY-1611 | ||
10 | Reviewed-by: Michael Goddard | ||
11 | --- | ||
12 | plugins/multimedia/gstreamer/gstvideoconnector.c | 4 ++++ | ||
13 | 1 files changed, 4 insertions(+), 0 deletions(-) | ||
14 | |||
15 | diff --git a/plugins/multimedia/gstreamer/gstvideoconnector.c b/plugins/multimedia/gstreamer/gstvideoconnector.c | ||
16 | index 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 | -- | ||
31 | 1.7.4.1 | ||
32 | |||