summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2011-12-21 18:14:45 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2011-12-21 18:14:45 +0100
commit3fc48e114b03bcb4ceb45cb47c7dcbf579b96146 (patch)
tree185939364b38388b132fd49369ae4919c01a263e /sys
parentf50573fd66f42191f73cad359c4165be55c7b206 (diff)
x11: reset alignment
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 4674f19a9..7ad88e932 100644
--- a/sys/ximage/ximagepool.c
+++ b/sys/ximage/ximagepool.c
@@ -507,6 +507,8 @@ ximage_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config)
/* we need the video metadata too now */
priv->add_metavideo = TRUE;
+ } else {
+ gst_video_alignment_reset (&priv->align);
}
/* add the padding */
diff --git a/sys/xvimage/xvimagepool.c b/sys/xvimage/xvimagepool.c
index a2b9cb7c5..86dab2870 100644
--- a/sys/xvimage/xvimagepool.c
+++ b/sys/xvimage/xvimagepool.c
@@ -543,6 +543,8 @@ xvimage_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config)
/* we need the video metadata too now */
priv->add_metavideo = TRUE;
+ } else {
+ gst_video_alignment_reset (&priv->align);
}
/* add the padding */