diff options
author | Julien Isorce <julien.isorce@gmail.com> | 2014-11-03 23:02:17 +0000 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-11-04 09:53:37 +0100 |
commit | eb9218e5687036465abf65a01ad495e1a5fdb368 (patch) | |
tree | 0da2f763a6a81bfb073bf175c2c8954f8f9f29a8 | |
parent | 49c49c1f88e867d56c36272efd409326170c6f62 (diff) | |
download | gstreamer-plugins-bad-eb9218e5687036465abf65a01ad495e1a5fdb368.tar.gz |
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.
-rw-r--r-- | gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m | 2 |
1 files changed, 1 insertions, 1 deletions
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; |