From e9c6c833c958c8fa28bd9e6a779f16556d92dabe Mon Sep 17 00:00:00 2001 From: Song Bing Date: Mon, 22 Dec 2014 09:25:04 -0500 Subject: videopool: update video alignment after applying Video buffer pool will update video alignment to respect stride alignment requirement. But haven't updated it to video alignment in configure. Which will cause user get wrong video alignment. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=741501 --- sys/ximage/ximagepool.c | 2 ++ sys/xvimage/xvimagepool.c | 2 ++ 2 files changed, 4 insertions(+) (limited to 'sys') diff --git a/sys/ximage/ximagepool.c b/sys/ximage/ximagepool.c index 3582f115e..6a0d12361 100644 --- a/sys/ximage/ximagepool.c +++ b/sys/ximage/ximagepool.c @@ -582,6 +582,8 @@ ximage_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config) /* do padding and alignment */ gst_video_info_align (&info, &xpool->align); + gst_buffer_pool_config_set_video_alignment (config, &xpool->align); + /* we need the video metadata too now */ xpool->add_metavideo = TRUE; } else { diff --git a/sys/xvimage/xvimagepool.c b/sys/xvimage/xvimagepool.c index 614f19750..a113f2f09 100644 --- a/sys/xvimage/xvimagepool.c +++ b/sys/xvimage/xvimagepool.c @@ -106,6 +106,8 @@ xvimage_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config) /* do padding and alignment */ gst_video_info_align (&info, &xvpool->align); + gst_buffer_pool_config_set_video_alignment (config, &xvpool->align); + /* we need the video metadata too now */ xvpool->add_metavideo = TRUE; } else { -- cgit v1.2.3