mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
eglglessink: Don't access the video frame data if not necessary
This commit is contained in:
parent
83612e7d19
commit
d643ff961e
1 changed files with 2 additions and 2 deletions
|
@ -2215,8 +2215,8 @@ gst_eglglessink_render_and_display (GstEglGlesSink * eglglessink,
|
|||
} else if (buf) {
|
||||
eglglessink->crop.x = 0;
|
||||
eglglessink->crop.y = 0;
|
||||
eglglessink->crop.w = GST_VIDEO_FRAME_WIDTH (&vframe);
|
||||
eglglessink->crop.h = GST_VIDEO_FRAME_HEIGHT (&vframe);
|
||||
eglglessink->crop.w = eglglessink->configured_info.width;
|
||||
eglglessink->crop.h = eglglessink->configured_info.width;
|
||||
}
|
||||
|
||||
if (!eglglessink->force_aspect_ratio) {
|
||||
|
|
Loading…
Reference in a new issue