diff options
author | Song Bing <b06498@freescale.com> | 2014-12-22 09:25:04 -0500 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2014-12-22 09:25:04 -0500 |
commit | e9c6c833c958c8fa28bd9e6a779f16556d92dabe (patch) | |
tree | c71d52938214c3be87b61b82849bcee373043dc2 /sys | |
parent | ef580889e03d223d64dbc5a2d847ba91c42dac0d (diff) |
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
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ximage/ximagepool.c | 2 | ||||
-rw-r--r-- | sys/xvimage/xvimagepool.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/ximage/ximagepool.c b/sys/ximage/ximagepool.c index 3582f115ed..6a0d123616 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 614f197508..a113f2f09b 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 { |