x11: reset alignment
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 21 Dec 2011 17:14:45 +0000 (18:14 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 21 Dec 2011 17:14:45 +0000 (18:14 +0100)
sys/ximage/ximagepool.c
sys/xvimage/xvimagepool.c

index 4674f19..7ad88e9 100644 (file)
@@ -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 */
index a2b9cb7..86dab28 100644 (file)
@@ -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 */