OSX custom QT app: libvlc causes keyboard to "not be released"
I tried to reduce this to the most dummy example.
The app attached:
- lays a webview next to a libvlc player
- the player will be destroyed after 10 seconds
During the time the player is displayed, it's possible to input text in the webview. Now, click the player while it's there, and wait for it to be destroyed. Try to type text in the webview.
Interestingly, if you do build again the player afterwards, the keyboard will be released. Does that mean something is not freed correctly on close (sys->glView?) that is forcefully freed on open?
Looking into modules/video_output/macosx.m - it turns out that disabling acceptFirstResponder in VLCOpenGLVideoView fixes the problem:
- (BOOL)acceptsFirstResponder
{
return NO;
}
I'm definitely not an expert in objc/cocoa and I am not sure of the implications for the rest of VLC, or clearly understand the issue :/.
Am I missing something? Any clue what is wrong there?
Thanks.