xvimagesink: don't recreate xvcontext
authorHolger Kaelberer <hk@getslash.de>
Tue, 14 Jan 2014 22:07:34 +0000 (23:07 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 15 Jan 2014 10:06:09 +0000 (11:06 +0100)
commitae4338bd35d8aee3ecf1e5f5e24a5a51e914881d
treeb8336a63b659bfd5f5e41918e1adb5258ff67ada
parentb532ce16a52dfc7e1a806ed559aab5d77735dcd8
xvimagesink: don't recreate xvcontext

A xvcontext can be created early in gst_xvimagesink_set_window_handle().
In this case don't recreate, i.e. overwrite it in gst_xvimagesink_open().
Otherwise XEvents won't be handled in the xevent listener thread.

Fixes a regression when setting the window handle on the sink in
the very beginning before changing its state.

https://bugzilla.gnome.org/show_bug.cgi?id=715138
sys/xvimage/xvimagesink.c