sys/: When we create our own window, indicate that we handle the
authorJan Schmidt <thaytan@mad.scientist.com>
Thu, 17 May 2007 17:35:46 +0000 (17:35 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Thu, 17 May 2007 17:35:46 +0000 (17:35 +0000)
commitcbc95dfb3d65ffbc9457038125d31c582943615e
treed57affb037b8d8a0ad891b413404de787ecb78a8
parenta18a10e81f803bf5c9cbfc06140c267214540e77
sys/: When we create our own window, indicate that we handle the

Original commit message from CVS:
* sys/ximage/ximagesink.c: (gst_ximagesink_ximage_put),
(gst_ximagesink_xwindow_new), (gst_ximagesink_handle_xevents),
(gst_ximagesink_show_frame):
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_xvimage_put),
(gst_xvimagesink_xwindow_new), (gst_xvimagesink_handle_xevents),
(gst_xvimagesink_show_frame):
When we create our own window, indicate that we handle the
WM_DELETE client message from the window manager, so that it won't
kill our window (and our app) along with it. Handle ClientMessage,
post an error on the bus, and close the window. Further buffers
arriving will result in a FlowError because the window has been
destroyed.
Fixes: #393975
Clean up the X event handling loop and make them the same for
both xvimagesink and ximagesink while I'm at it.
ChangeLog
sys/ximage/ximagesink.c
sys/xvimage/xvimagesink.c