mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 04:52:28 +00:00
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.
This commit is contained in:
parent
11661ceca9
commit
a259391c10
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue