After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 570768 - [ximagesink] wrong mouse pointer position if output window is smaller than the image
[ximagesink] wrong mouse pointer position if output window is smaller than th...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal trivial
: 0.10.23
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-02-06 10:01 UTC by Hannes Bistry
Modified: 2009-04-14 11:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fixes navigation bug in ximagesink (757 bytes, patch)
2009-02-06 10:04 UTC, Hannes Bistry
committed Details | Review

Description Hannes Bistry 2009-02-06 10:01:55 UTC
gst-launch -v videotestsrc ! 'video/x-raw-yuv,width=800,height=600' ! navigationtest ! ffmpegcolorspace ! ximagesink

-then manually reduce the output window size and the black block will have an offset

Reason: ximagesink tries to keep the coordinates correct if the output window is bigger than the image and neglects the case that it can be smaller.

My patch will follow in a couple of seconds...
Comment 1 Hannes Bistry 2009-02-06 10:04:22 UTC
Created attachment 128085 [details] [review]
fixes navigation bug in ximagesink
Comment 2 Hannes Bistry 2009-02-06 10:05:43 UTC
Sorry, of course this is a bug in ximagesink, and not in videotestsrc
Comment 3 Tim-Philipp Müller 2009-04-14 11:28:21 UTC
Committed, thanks a lot for the patch (and sorry it took so long):

commit 77050a72f8c54a62ab344402aa15d8645150596a
Author: Hannes Bistry <hannesb@gmx.net>
Date:   Tue Apr 14 12:10:30 2009 +0100

    ximagesink: fix mouse pointer offsets in navigation event if window is smaller than the image
    
    Fixes #570768.