mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-17 12:55:53 +00:00
ximagesrc: fix xnavigation linking issue
Fixes #3083 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5589>
This commit is contained in:
parent
2be13c82aa
commit
e3e8147a74
2 changed files with 3 additions and 1 deletions
|
@ -1220,6 +1220,7 @@ static gboolean
|
||||||
gst_ximage_src_event (GstBaseSrc * base_src, GstEvent * event)
|
gst_ximage_src_event (GstBaseSrc * base_src, GstEvent * event)
|
||||||
{
|
{
|
||||||
gboolean ret = FALSE;
|
gboolean ret = FALSE;
|
||||||
|
#ifdef HAVE_XNAVIGATION
|
||||||
gboolean is_press = FALSE;
|
gboolean is_press = FALSE;
|
||||||
GstXImageSrc *src = GST_XIMAGE_SRC (base_src);
|
GstXImageSrc *src = GST_XIMAGE_SRC (base_src);
|
||||||
if (src->enable_navigation_events
|
if (src->enable_navigation_events
|
||||||
|
@ -1272,6 +1273,7 @@ gst_ximage_src_event (GstBaseSrc * base_src, GstEvent * event)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
ret =
|
ret =
|
||||||
GST_CALL_PARENT_WITH_DEFAULT (GST_BASE_SRC_CLASS, event, (base_src,
|
GST_CALL_PARENT_WITH_DEFAULT (GST_BASE_SRC_CLASS, event, (base_src,
|
||||||
|
|
|
@ -21,7 +21,7 @@ if x11_dep.found()
|
||||||
|
|
||||||
xtst_dep = dependency('xtst', required : get_option('ximagesrc-navigation'))
|
xtst_dep = dependency('xtst', required : get_option('ximagesrc-navigation'))
|
||||||
if xtst_dep.found()
|
if xtst_dep.found()
|
||||||
x_args += ['-DHAVE_NAVIGATION']
|
x_args += ['-DHAVE_XNAVIGATION']
|
||||||
x_sources += files(['gst-ximage-navigation.c'])
|
x_sources += files(['gst-ximage-navigation.c'])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue