v4l2sink: don't use deprecated XKeycodeToKeysym

https://bugzilla.gnome.org/show_bug.cgi?id=671299

Signed-off-by: Oleksij Rempel (Alexey Fisher) <bug-track@fisher-privat.net>
This commit is contained in:
Oleksij Rempel (Alexey Fisher) 2012-03-05 11:17:30 +01:00 committed by Tim-Philipp Müller
parent dccbbe191d
commit a83d2f7047

View file

@ -32,6 +32,8 @@
#include <X11/extensions/Xv.h> #include <X11/extensions/Xv.h>
#include <X11/extensions/Xvlib.h> #include <X11/extensions/Xvlib.h>
#include <sys/stat.h> #include <sys/stat.h>
/* for XkbKeycodeToKeysym */
#include <X11/XKBlib.h>
#include <gst/interfaces/navigation.h> #include <gst/interfaces/navigation.h>
@ -323,7 +325,7 @@ event_refresh (gpointer data)
case KeyPress: case KeyPress:
case KeyRelease: case KeyRelease:
g_mutex_lock (v4l2xv->mutex); g_mutex_lock (v4l2xv->mutex);
keysym = XKeycodeToKeysym (v4l2xv->dpy, e.xkey.keycode, 0); keysym = XkbKeycodeToKeysym (v4l2xv->dpy, e.xkey.keycode, 0, 0);
if (keysym != NoSymbol) { if (keysym != NoSymbol) {
key_str = XKeysymToString (keysym); key_str = XKeysymToString (keysym);
} else { } else {