videbox: fix border filling for gray formats

Get the height via GST_VIDEO_FRAME_HEIGHT, not _WIDTH.

https://bugzilla.gnome.org/show_bug.cgi?id=687330
This commit is contained in:
Douglas Bagnall 2012-11-01 13:02:16 +00:00 committed by Tim-Philipp Müller
parent c0713e4b80
commit 79403bcb0c

View file

@ -2148,7 +2148,7 @@ fill_gray (GstVideoBoxFill fill_type, guint b_alpha,
format = GST_VIDEO_FRAME_FORMAT (frame);
width = GST_VIDEO_FRAME_WIDTH (frame);
height = GST_VIDEO_FRAME_WIDTH (frame);
height = GST_VIDEO_FRAME_HEIGHT (frame);
dest = GST_VIDEO_FRAME_PLANE_DATA (frame, 0);
dest_stride = GST_VIDEO_FRAME_PLANE_STRIDE (frame, 0);