diff --git a/subprojects/gst-plugins-good/sys/ximage/gstximagesrc.c b/subprojects/gst-plugins-good/sys/ximage/gstximagesrc.c index 895816abfe..2f7bd52641 100644 --- a/subprojects/gst-plugins-good/sys/ximage/gstximagesrc.c +++ b/subprojects/gst-plugins-good/sys/ximage/gstximagesrc.c @@ -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, diff --git a/subprojects/gst-plugins-good/sys/ximage/meson.build b/subprojects/gst-plugins-good/sys/ximage/meson.build index 11922faba7..a7021f109c 100644 --- a/subprojects/gst-plugins-good/sys/ximage/meson.build +++ b/subprojects/gst-plugins-good/sys/ximage/meson.build @@ -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