summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base
diff options
context:
space:
mode:
authorYuqing Zhu <b54851@freescale.com>2015-08-10 11:41:35 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-11 09:28:49 -0700
commitec5d33aad7eef2dfd9336dede8e396fd0fc38f17 (patch)
treeb27187d4f8b7be015bab4f7228b5d5fd89ef3109 /meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base
parent9a5a62a799af3853dca385060e474fec0689122a (diff)
downloadpoky-ec5d33aad7eef2dfd9336dede8e396fd0fc38f17.tar.gz
gstreamer1.0-plugins-base: Update video alignment after video alignment
Video buffer pool will update video alignment to respect stride alignment requirement. But haven't update it to video alignment in configure. Which will cause user get wrong video alignment. (From OE-Core rev: d0b5780125926eb33cc82f17c679e16e64312478) Signed-off-by: Yuqing Zhu <b54851@freescale.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base')
-rwxr-xr-xmeta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/videobuffer_updata_alignment_update.patch53
1 files changed, 53 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/videobuffer_updata_alignment_update.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/videobuffer_updata_alignment_update.patch
new file mode 100755
index 0000000000..8cfda955a7
--- /dev/null
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/videobuffer_updata_alignment_update.patch
@@ -0,0 +1,53 @@
1commit 88d253ea23b06289df40401160b606323f16c910
2Author: Song Bing <b06498@freescale.com>
3Date: Mon Dec 15 09:34:35 2014 +0800
4
5videopool: update video alignment after video alignment
6
7Video buffer pool will update video alignment to respect stride alignment
8requirement. But haven't update it to video alignment in configure.
9Which will cause user get wrong video alignment.
10
11https://bugzilla.gnome.org/show_bug.cgi?id=741501
12
13Upstream-Status: Backport [1.5.1]
14
15Signed-off-by: Song Bing <b06498@freescale.com>
16diff --git a/gst-libs/gst/video/gstvideopool.c b/gst-libs/gst/video/gstvideopool.c
17index 4475f45..acef594 100644
18--- a/gst-libs/gst/video/gstvideopool.c
19+++ b/gst-libs/gst/video/gstvideopool.c
20@@ -167,6 +167,7 @@ video_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config)
21 /* get an apply the alignment to the info */
22 gst_buffer_pool_config_get_video_alignment (config, &priv->video_align);
23 gst_video_info_align (&info, &priv->video_align);
24+ gst_buffer_pool_config_set_video_alignment (config, &priv->video_align);
25 }
26 priv->info = info;
27
28diff --git a/sys/ximage/ximagepool.c b/sys/ximage/ximagepool.c
29index 6cc2cfa..6a1cbc9 100644
30--- a/sys/ximage/ximagepool.c
31+++ b/sys/ximage/ximagepool.c
32@@ -597,6 +597,8 @@ ximage_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config)
33 /* do padding and alignment */
34 gst_video_info_align (&info, &priv->align);
35
36+ gst_buffer_pool_config_set_video_alignment (config, &priv->align);
37+
38 /* we need the video metadata too now */
39 priv->add_metavideo = TRUE;
40 } else {
41diff --git a/sys/xvimage/xvimagepool.c b/sys/xvimage/xvimagepool.c
42index 244a51a..34b1ab2 100644
43--- a/sys/xvimage/xvimagepool.c
44+++ b/sys/xvimage/xvimagepool.c
45@@ -124,6 +124,8 @@ xvimage_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config)
46 /* do padding and alignment */
47 gst_video_info_align (&info, &priv->align);
48
49+ gst_buffer_pool_config_set_video_alignment (config, &priv->align);
50+
51 /* we need the video metadata too now */
52 priv->add_metavideo = TRUE;
53 } else {