gstreamer/sys
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
..
ximage ximagesink, xvimagesink: fix incorrect type conversion of pointer position 2017-12-08 00:48:16 +00:00
xvimage ximagesink, xvimagesink: fix incorrect type conversion of pointer position 2017-12-08 00:48:16 +00:00
Makefile.am Remove v4l plugin 2011-06-07 20:47:46 +01:00
meson.build Add support for Meson as alternative/parallel build system 2016-08-20 11:09:51 +01:00