mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
vdpau: Switch from deprecated XKeycodeToKeysym() to XkbKeycodeToKeysym()
Conflicts: sys/vdpau/gstvdpsink.c
This commit is contained in:
parent
07ddc9d8cd
commit
a5495fb475
1 changed files with 4 additions and 1 deletions
|
@ -30,6 +30,8 @@
|
||||||
#include <gst/interfaces/navigation.h>
|
#include <gst/interfaces/navigation.h>
|
||||||
#include <gst/interfaces/xoverlay.h>
|
#include <gst/interfaces/xoverlay.h>
|
||||||
|
|
||||||
|
#include <X11/XKBlib.h>
|
||||||
|
|
||||||
/* Debugging category */
|
/* Debugging category */
|
||||||
#include <gst/gstinfo.h>
|
#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);
|
e.xkey.keycode, e.xkey.x, e.xkey.x);
|
||||||
g_mutex_lock (vdp_sink->x_lock);
|
g_mutex_lock (vdp_sink->x_lock);
|
||||||
keysym =
|
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);
|
g_mutex_unlock (vdp_sink->x_lock);
|
||||||
if (keysym != NoSymbol) {
|
if (keysym != NoSymbol) {
|
||||||
char *key_str = NULL;
|
char *key_str = NULL;
|
||||||
|
|
Loading…
Reference in a new issue