gl/cocoa: fix uncaught exception 'unrecognized selector sent to instance'
authorJulien Isorce <julien.isorce@gmail.com>
Mon, 3 Nov 2014 23:02:17 +0000 (23:02 +0000)
committerJulien Isorce <julien.isorce@gmail.com>
Mon, 3 Nov 2014 23:02:17 +0000 (23:02 +0000)
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

index c1fb7a7..66ead8f 100644 (file)
@@ -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;