gl: win32: use a GMainContext to dispatch win32 messages
authorXavier Claessens <xavier.claessens@collabora.com>
Wed, 20 May 2015 19:29:50 +0000 (15:29 -0400)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:02 +0000 (19:32 +0000)
commit886ea15c5226ae41655dbd5fd693c20338ba7dbe
treed8f00053494cf35c75952336753fbacbaf110e87
parent95b08b75baeae2989509f654e9700a14f22a3629
gl: win32: use a GMainContext to dispatch win32 messages

gst_gl_window_win32_send_message_async() could be called before the
internal window is created so we cannot use PostMessage there.

x11 and wayland backends both create a custom GSource for this,
so there is no reason to not do that for win32.

https://bugzilla.gnome.org/show_bug.cgi?id=749601
gst-libs/gst/gl/win32/Makefile.am
gst-libs/gst/gl/win32/gstglwindow_win32.c
gst-libs/gst/gl/win32/gstglwindow_win32.h
gst-libs/gst/gl/win32/win32_message_source.c [new file with mode: 0644]
gst-libs/gst/gl/win32/win32_message_source.h [new file with mode: 0644]