eglglessink: Don't access the video frame data if not necessary
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 30 Dec 2012 09:43:33 +0000 (10:43 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 30 Dec 2012 10:25:13 +0000 (11:25 +0100)
ext/eglgles/gsteglglessink.c

index af71a58961a4cea3ce5d5f4fb2c2d0e7766cfea3..b330eb22f13e670b6137ad0872af97549d474f47 100644 (file)
@@ -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) {