From e50f26441140d4d618dbc93c07b36302c33c9ce2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 23 Apr 2014 11:10:28 +0200 Subject: [PATCH] glimagesink: Use the pixel-aspect-ratio adjusted width/height when centering the frame in the display area Makes sure we actually keep the display aspect ratio --- ext/gl/gstglimagesink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/gl/gstglimagesink.c b/ext/gl/gstglimagesink.c index d6d8974aa8..b9f21a5bb3 100644 --- a/ext/gl/gstglimagesink.c +++ b/ext/gl/gstglimagesink.c @@ -1031,8 +1031,8 @@ gst_glimage_sink_on_resize (const GstGLImageSink * gl_sink, gint width, src.x = 0; src.y = 0; - src.w = GST_VIDEO_INFO_WIDTH (&gl_sink->info); - src.h = GST_VIDEO_INFO_HEIGHT (&gl_sink->info); + src.w = GST_VIDEO_SINK_WIDTH (gl_sink); + src.h = GST_VIDEO_SINK_HEIGHT (gl_sink); dst.x = 0; dst.y = 0;