From 3fc48e114b03bcb4ceb45cb47c7dcbf579b96146 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 21 Dec 2011 18:14:45 +0100 Subject: [PATCH] x11: reset alignment --- sys/ximage/ximagepool.c | 2 ++ sys/xvimage/xvimagepool.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/sys/ximage/ximagepool.c b/sys/ximage/ximagepool.c index 4674f19a9d..7ad88e932f 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 a2b9cb7c52..86dab2870d 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 */