summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kms/gstkmssink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kms/gstkmssink.c b/sys/kms/gstkmssink.c
index 7cce366..cf67cd1 100644
--- a/sys/kms/gstkmssink.c
+++ b/sys/kms/gstkmssink.c
@@ -132,8 +132,8 @@ commit:
self->pending_rect.x = x + result.x;
self->pending_rect.y = y + result.y;
- self->pending_rect.w = result.w;
- self->pending_rect.h = result.h;
+ self->pending_rect.w = GST_ROUND_UP_4 (result.w);
+ self->pending_rect.h = GST_ROUND_UP_4 (result.h);
GST_DEBUG_OBJECT (self, "pending resize to (%d,%d)-(%dx%d)",
self->pending_rect.x, self->pending_rect.y,