gl: win32: do not call SetParent in release_parent_win_id()
authorXavier Claessens <xavier.claessens@collabora.com>
Thu, 21 May 2015 19:30:34 +0000 (15:30 -0400)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:02 +0000 (19:32 +0000)
commit6db457a7d944c7ac4a193286798d49e2a0fb78c6
tree2321a52bdb60e3460b47c0280be3b44068a823ca
parent1d9ccc2189fec1fc2f0270268b306edca780e8ef
gl: win32: do not call SetParent in release_parent_win_id()

When called from gst_gl_window_win32_close(), internal window
could not exist, and if it does it's going to be destroyed just
after that anyway. Also it causes window_proc() to be called
and crash because it gets a NULL context.

When called from gst_gl_window_win32_set_window_handle() we are
going to set another parent anyway, and it's probably better to
reparent directly instead of passing by a NULL parent which could
cause the internal window to popup briefly.

https://bugzilla.gnome.org/show_bug.cgi?id=749601
gst-libs/gst/gl/win32/gstglwindow_win32.c