mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 13:21:28 +00:00
sys/: Lock that X Call as well. Fixes #397673.
Original commit message from CVS: 2007-01-22 Julien MOUTTE <julien@moutte.net> * sys/ximage/ximagesink.c: (gst_ximagesink_handle_xevents): * sys/xvimage/xvimagesink.c: (gst_xvimagesink_handle_xevents): Lock that X Call as well. Fixes #397673.
This commit is contained in:
parent
0da3960238
commit
34af6e729d
3 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2007-01-22 Julien MOUTTE <julien@moutte.net>
|
||||
|
||||
* sys/ximage/ximagesink.c: (gst_ximagesink_handle_xevents):
|
||||
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_handle_xevents):
|
||||
Lock that X Call as well. Fixes #397673.
|
||||
|
||||
2007-01-22 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst/typefind/gsttypefindfunctions.c: (mpeg4_video_type_find):
|
||||
|
|
|
@ -962,8 +962,10 @@ gst_ximagesink_handle_xevents (GstXImageSink * ximagesink)
|
|||
events for interactivity/navigation */
|
||||
GST_DEBUG ("ximagesink key %d pressed over window at %d,%d",
|
||||
e.xkey.keycode, e.xkey.x, e.xkey.x);
|
||||
g_mutex_lock (ximagesink->x_lock);
|
||||
keysym = XKeycodeToKeysym (ximagesink->xcontext->disp,
|
||||
e.xkey.keycode, 0);
|
||||
g_mutex_unlock (ximagesink->x_lock);
|
||||
if (keysym != NoSymbol) {
|
||||
gst_navigation_send_key_event (GST_NAVIGATION (ximagesink),
|
||||
e.type == KeyPress ?
|
||||
|
|
|
@ -1087,8 +1087,10 @@ gst_xvimagesink_handle_xevents (GstXvImageSink * xvimagesink)
|
|||
events for interactivity/navigation */
|
||||
GST_DEBUG ("xvimagesink key %d pressed over window at %d,%d",
|
||||
e.xkey.keycode, e.xkey.x, e.xkey.y);
|
||||
g_mutex_lock (xvimagesink->x_lock);
|
||||
keysym = XKeycodeToKeysym (xvimagesink->xcontext->disp,
|
||||
e.xkey.keycode, 0);
|
||||
g_mutex_unlock (xvimagesink->x_lock);
|
||||
if (keysym != NoSymbol) {
|
||||
gst_navigation_send_key_event (GST_NAVIGATION (xvimagesink),
|
||||
e.type == KeyPress ?
|
||||
|
|
Loading…
Reference in a new issue