GNOME Bugzilla – Bug 767462
gl: cocoa-videooverlay doesn't work
Last modified: 2017-07-16 10:35:23 UTC
Created attachment 329484 [details] gl*:5 log The window goes below my terminal window and remains gray. Attaching a gl*:5 log.
I can not reproduce here. Does this occur with latest master?
Yes. Attaching a recent log.
Created attachment 340184 [details] log
I cannot not reproduce in cerbero. Are you running without cerbero?
Using gst-uninstalled here, deps installed with Homebrew.
Finally found some time to debug this, heh :) The problem (at least for me) is that gst_gl_window_cocoa_show() is called before gst_gl_window_cocoa_create_window() and that gst_gl_window_cocoa_set_window_handle() is not called after the window was created. One way to fix it, is to call gst_gl_window_cocoa_set_window_handle() within gst_gl_window_cocoa_create_window(). Would this be acceptable?
Created attachment 355691 [details] [review] proposed patch
Review of attachment 355691 [details] [review]: This seems fine.
Comment on attachment 355691 [details] [review] proposed patch commit dcb35318e9d50b153af02822450be89748bb7439 Author: Philippe Normand <philn@igalia.com> Date: Sat Jul 15 17:25:36 2017 +0100 glwindow_cocoa: fix video overlay support Make sure the window handle is configured after the NSWindow was created. https://bugzilla.gnome.org/show_bug.cgi?id=767462
This should probably also go into 1.12?
Right, I'll push it into the 1.12 branch as well :)