gstreamer/sys/xvimage
Akinobu Mita 6e770e0ebb ximagesink, xvimagesink: fix incorrect type conversion of pointer position
I'm currently playing with modified ximagesink that does XGrabPointer()
in order to receive the mouse events occurred outside of the window and
send them to the navigation interface.

The pointer positions usually have positive coordinates, but it could
be negative with that change.

When the ximagesink handles XEvent that contains a negative pointer
coordinate, it incorrectly generates the GstEvent that contains an
extremely large positive pointer coordinate.

This is because the negative pointer position in XEvent is incorrectly
converted from signed to unsigned and passed as an argument to
gst_navigation_send_mouse_event() which causes implicit conversion from
integer to double.  So the pointer position in the received XEvent and
generated GstEvent are completely different.

This potential problem does not seem to be a real problem with unmodified
ximagesink but there is no reason to leave it as is.  This also fixes
xvimagesink that has the same potential problem.

https://bugzilla.gnome.org/show_bug.cgi?id=791140
2017-12-08 00:48:16 +00:00
..
Makefile.am Remove plugin specific static build option 2017-05-16 13:42:07 -04:00
meson.build Fix plugin filenames to match pugin names 2017-03-08 20:04:17 -05:00
xvcontext.c Fix use of undeclared core debug category symbols 2016-02-20 11:31:43 +00:00
xvcontext.h xvimagesink: only try to set XV_ITURBT_709 port attribute if it exists 2014-09-11 22:58:16 +01:00
xvimage.c Fix use of undeclared core debug category symbols 2016-02-20 11:31:43 +00:00
xvimageallocator.c xvimageallocator: Fix build warning error 2017-12-06 15:28:54 -05:00
xvimageallocator.h xvimageallocator: const correctness in gst_xvimage_allocator_alloc(). 2016-07-18 14:17:09 +01:00
xvimagepool.c gst: Clear floating flag in constructor of all GstObject subclasses that are not owned by any parent 2017-05-17 10:40:52 +03:00
xvimagepool.h xvimagesink: get rid of unnecessary private struct for pool 2014-09-27 16:21:37 +01:00
xvimagesink.c ximagesink, xvimagesink: fix incorrect type conversion of pointer position 2017-12-08 00:48:16 +00:00
xvimagesink.h x/xv_image_sink: rename for consitency 2015-07-06 17:37:15 +02:00