summaryrefslogtreecommitdiff
path: root/sys/vdpau
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2012-04-24 11:02:26 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-04-24 11:07:49 +0200
commita5495fb4752aab99836d2ee52a8829c1c2bafe0a (patch)
tree2580f6a5c5a78148517e783ce8f7fa0450ff5e43 /sys/vdpau
parent07ddc9d8cdb5614781c31981c61f487dd64013a7 (diff)
downloadgstreamer-plugins-bad-a5495fb4752aab99836d2ee52a8829c1c2bafe0a.tar.gz
vdpau: Switch from deprecated XKeycodeToKeysym() to XkbKeycodeToKeysym()
Conflicts: sys/vdpau/gstvdpsink.c
Diffstat (limited to 'sys/vdpau')
-rw-r--r--sys/vdpau/gstvdpsink.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/vdpau/gstvdpsink.c b/sys/vdpau/gstvdpsink.c
index 5a5677eb4..35ea182a4 100644
--- a/sys/vdpau/gstvdpsink.c
+++ b/sys/vdpau/gstvdpsink.c
@@ -30,6 +30,8 @@
#include <gst/interfaces/navigation.h>
#include <gst/interfaces/xoverlay.h>
+#include <X11/XKBlib.h>
+
/* Debugging category */
#include <gst/gstinfo.h>
@@ -387,7 +389,8 @@ gst_vdp_sink_handle_xevents (VdpSink * vdp_sink)
e.xkey.keycode, e.xkey.x, e.xkey.x);
g_mutex_lock (vdp_sink->x_lock);
keysym =
- XKeycodeToKeysym (vdp_sink->device->display, e.xkey.keycode, 0);
+ XkbKeycodeToKeysym (vdp_sink->device->display, e.xkey.keycode, 0,
+ 0);
g_mutex_unlock (vdp_sink->x_lock);
if (keysym != NoSymbol) {
char *key_str = NULL;