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)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 21 May 2015 18:33:52 +0000 (14:33 -0400)
commite24bc348bd5e78688c9c0da4f81c58e76a5920e6
tree6238ae8b850ffb0f0526fcb7bfc848f299043615
parentc9372ae33fc558b158800ba87c6d350bf584942f
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]