From c6f4b5a14f21346df4a49d1938a50d4142414f21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 25 Apr 2018 01:08:58 +0300 Subject: [PATCH] gl/cocoa: Use NSRect instead of CGRect On 64 bit systems they're typedefs of each other but on 32 bit systems not, and we pass the rect to an API that expects a NSRect --- gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m b/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m index ab1d4e1405..ce101ac3ff 100644 --- a/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m +++ b/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m @@ -484,7 +484,7 @@ _set_render_rectangle (gpointer data) } view = [internal_win_id contentView]; - CGRect newMainViewFrame = CGRectMake(render->rect.x, + NSRect newMainViewFrame = NSMakeRect(render->rect.x, render->rect.y, render->rect.w, render->rect.h);