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
This commit is contained in:
Sebastian Dröge 2014-04-23 11:10:28 +02:00 committed by Tim-Philipp Müller
parent 889e92e738
commit 569f1363f4

View file

@ -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;