summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/ximage/ximagepool.c2
-rw-r--r--sys/xvimage/xvimagepool.c2
2 files changed, 4 insertions, 0 deletions
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 {