[gstreamer-bugs] [Bug 310747] New: [ximagesrc] Segfaults when using a bpp != 32

bugzilla-daemon at bugzilla.gnome.org bugzilla-daemon at bugzilla.gnome.org
Mon Jul 18 05:07:44 PDT 2005


Please DO NOT reply to this by email. All additional comments should be made in
the comments box of this bug report.

 http://bugzilla.gnome.org/show_bug.cgi?id=310747
 GStreamer | gst-plugins | Ver: 0.8.x

           Summary: [ximagesrc] Segfaults when using a bpp != 32
           Product: GStreamer
           Version: 0.8.x
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: luogni at tin.it
         QAContact: gstreamer-bugs at lists.sourceforge.net
                CC: all-bugs at bugzilla.gnome.org


ximagesrc segfaults when trying to blend the X cursor over the frame if the bpp
of your X server is different than 32 (i've tested with 16). 
This: 
composite_pixel ((guchar *) & (((guint32 *) image->ximage->data)[j *
                      s->width + i]),
              (guchar *) & (((guint32 *) cursor_image->pixels)[(j -
                          cy) * cursor_image->width + (i - cx)]));
is correct only if every pixel is 32 bit wide. s/guint32/guint16 to make it
works with 16bpp. 
The function "composite_pixel" should also support different bpp and different
masks.

If anyone is faster than me i'll take a look ASAP.

------- You are receiving this mail because: -------
You are the assignee for the bug.
You are the QA contact for the bug.




More information about the Gstreamer-bugs mailing list