sys/: Looking at Xorg code i can't figure out if that XKeysymToString function is thread sensible or not. Lock it jus...
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): Looking at Xorg code i can't figure out if that XKeysymToString function is thread sensible or not. Lock it just in case as recommended by Radek Doulik <rodo at ximian dot com>.
This commit is contained in:
parent
34af6e729d
commit
7861683872
@ -1,3 +1,11 @@
|
|||||||
|
2007-01-22 Julien MOUTTE <julien@moutte.net>
|
||||||
|
|
||||||
|
* sys/ximage/ximagesink.c: (gst_ximagesink_handle_xevents):
|
||||||
|
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_handle_xevents):
|
||||||
|
Looking at Xorg code i can't figure out if that XKeysymToString
|
||||||
|
function is thread sensible or not. Lock it just in case as
|
||||||
|
recommended by Radek Doulik <rodo at ximian dot com>.
|
||||||
|
|
||||||
2007-01-22 Julien MOUTTE <julien@moutte.net>
|
2007-01-22 Julien MOUTTE <julien@moutte.net>
|
||||||
|
|
||||||
* sys/ximage/ximagesink.c: (gst_ximagesink_handle_xevents):
|
* sys/ximage/ximagesink.c: (gst_ximagesink_handle_xevents):
|
||||||
|
@ -967,9 +967,11 @@ gst_ximagesink_handle_xevents (GstXImageSink * ximagesink)
|
|||||||
e.xkey.keycode, 0);
|
e.xkey.keycode, 0);
|
||||||
g_mutex_unlock (ximagesink->x_lock);
|
g_mutex_unlock (ximagesink->x_lock);
|
||||||
if (keysym != NoSymbol) {
|
if (keysym != NoSymbol) {
|
||||||
|
g_mutex_lock (ximagesink->x_lock);
|
||||||
gst_navigation_send_key_event (GST_NAVIGATION (ximagesink),
|
gst_navigation_send_key_event (GST_NAVIGATION (ximagesink),
|
||||||
e.type == KeyPress ?
|
e.type == KeyPress ?
|
||||||
"key-press" : "key-release", XKeysymToString (keysym));
|
"key-press" : "key-release", XKeysymToString (keysym));
|
||||||
|
g_mutex_unlock (ximagesink->x_lock);
|
||||||
} else {
|
} else {
|
||||||
gst_navigation_send_key_event (GST_NAVIGATION (ximagesink),
|
gst_navigation_send_key_event (GST_NAVIGATION (ximagesink),
|
||||||
e.type == KeyPress ? "key-press" : "key-release", "unknown");
|
e.type == KeyPress ? "key-press" : "key-release", "unknown");
|
||||||
|
@ -1092,9 +1092,11 @@ gst_xvimagesink_handle_xevents (GstXvImageSink * xvimagesink)
|
|||||||
e.xkey.keycode, 0);
|
e.xkey.keycode, 0);
|
||||||
g_mutex_unlock (xvimagesink->x_lock);
|
g_mutex_unlock (xvimagesink->x_lock);
|
||||||
if (keysym != NoSymbol) {
|
if (keysym != NoSymbol) {
|
||||||
|
g_mutex_lock (xvimagesink->x_lock);
|
||||||
gst_navigation_send_key_event (GST_NAVIGATION (xvimagesink),
|
gst_navigation_send_key_event (GST_NAVIGATION (xvimagesink),
|
||||||
e.type == KeyPress ?
|
e.type == KeyPress ?
|
||||||
"key-press" : "key-release", XKeysymToString (keysym));
|
"key-press" : "key-release", XKeysymToString (keysym));
|
||||||
|
g_mutex_unlock (xvimagesink->x_lock);
|
||||||
} else {
|
} else {
|
||||||
gst_navigation_send_key_event (GST_NAVIGATION (xvimagesink),
|
gst_navigation_send_key_event (GST_NAVIGATION (xvimagesink),
|
||||||
e.type == KeyPress ? "key-press" : "key-release", "unknown");
|
e.type == KeyPress ? "key-press" : "key-release", "unknown");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user