diff --git a/sys/xvimage/Makefile.am b/sys/xvimage/Makefile.am index b7797c55f4..c9886a9467 100644 --- a/sys/xvimage/Makefile.am +++ b/sys/xvimage/Makefile.am @@ -3,7 +3,7 @@ plugin_LTLIBRARIES = libgstxvimagesink.la libgstxvimagesink_la_SOURCES = xvimagesink.c libgstxvimagesink_la_CFLAGS = $(GST_CFLAGS) $(X_CFLAGS) -libgstxvimagesink_la_LIBADD = $(X_LIBS) $(XVIDEO_LIBS) +libgstxvimagesink_la_LIBADD = $(X_LIBS) $(XVIDEO_LIBS) $(XSHM_LIBS) libgstxvimagesink_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) \ $(top_builddir)/gst-libs/gst/navigation/libgstnavigation.la \ $(top_builddir)/gst-libs/gst/xoverlay/libgstxoverlay.la diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index 1ba2f883c1..df9dbf3428 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -374,8 +374,8 @@ gst_xvimagesink_handle_xevents (GstXvImageSink *xvimagesink, GstPad *pad) event->event_data.caps.caps = GST_CAPS_NEW ( "xvimagesink_navigation", "video/x-raw-rgb", - "pointer_x", GST_PROPS_INT (e.xmotion.x), - "pointer_y", GST_PROPS_INT (e.xmotion.y), + "pointer_x", GST_PROPS_FLOAT (e.xmotion.x), + "pointer_y", GST_PROPS_FLOAT (e.xmotion.y), "state", GST_PROPS_INT (e.xmotion.state)); break; case ButtonPress: @@ -388,8 +388,8 @@ gst_xvimagesink_handle_xevents (GstXvImageSink *xvimagesink, GstPad *pad) event->event_data.caps.caps = GST_CAPS_NEW ( "xvimagesink_navigation", "video/x-raw-rgb", - "pointer_x", GST_PROPS_INT (e.xbutton.x), - "pointer_y", GST_PROPS_INT (e.xbutton.y), + "pointer_x", GST_PROPS_FLOAT (e.xbutton.x), + "pointer_y", GST_PROPS_FLOAT (e.xbutton.y), "button", GST_PROPS_INT (e.xbutton.button), "state", GST_PROPS_INT (e.xbutton.state)); break;