ximagesrc: fix xnavigation linking issue

Fixes #3083

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5589>
This commit is contained in:
robert 2023-11-02 01:48:28 +00:00 committed by GStreamer Marge Bot
parent 2be13c82aa
commit e3e8147a74
2 changed files with 3 additions and 1 deletions

View file

@ -1220,6 +1220,7 @@ static gboolean
gst_ximage_src_event (GstBaseSrc * base_src, GstEvent * event)
{
gboolean ret = FALSE;
#ifdef HAVE_XNAVIGATION
gboolean is_press = FALSE;
GstXImageSrc *src = GST_XIMAGE_SRC (base_src);
if (src->enable_navigation_events
@ -1272,6 +1273,7 @@ gst_ximage_src_event (GstBaseSrc * base_src, GstEvent * event)
break;
}
}
#endif
if (!ret) {
ret =
GST_CALL_PARENT_WITH_DEFAULT (GST_BASE_SRC_CLASS, event, (base_src,

View file

@ -21,7 +21,7 @@ if x11_dep.found()
xtst_dep = dependency('xtst', required : get_option('ximagesrc-navigation'))
if xtst_dep.found()
x_args += ['-DHAVE_NAVIGATION']
x_args += ['-DHAVE_XNAVIGATION']
x_sources += files(['gst-ximage-navigation.c'])
endif