mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +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
ebab5b0a43
commit
e50f264411
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