mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
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:
parent
889e92e738
commit
569f1363f4
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue