From eb9218e5687036465abf65a01ad495e1a5fdb368 Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Mon, 3 Nov 2014 23:02:17 +0000 Subject: gl/cocoa: fix uncaught exception 'unrecognized selector sent to instance' Need to set the ':' as the reshape method now takes one parameter. For the story, the GstGLNSView was previously inheriting from NSOpenGLView which has a reshape function without any parameter. Now the GstGLNSView inherits from NSView and we re-use the reshape function manually. --- 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 41722b8c3..c1890d2aa 100644 --- a/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m +++ b/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m @@ -493,7 +493,7 @@ close_window_cb (gpointer data) #endif /* Get notified about changes */ - [[NSNotificationCenter defaultCenter] addObserver: self selector:@selector(reshape) name: NSViewFrameDidChangeNotification object: self]; + [[NSNotificationCenter defaultCenter] addObserver: self selector:@selector(reshape:) name: NSViewFrameDidChangeNotification object: self]; [self setWantsBestResolutionOpenGLSurface:YES]; return self; -- cgit v1.2.1