GNOME Bugzilla – Bug 435557
[ximagesink] if no XShm available, distorted image with odd widths
Last modified: 2011-08-11 12:46:53 UTC
When XShm is not available, XCreateImage() is used and will not always return an ximage->bytes_per_line that's a multiple of four. However, almost all elements in GStreamer will assume a row stride that's a multiple of 4 for RGB. This leads to a distorted image in those cases. To reproduce: - add #undef HAVE_XSHM to the top of sys/ximage/ximagesink.h - try gst-launch-0.10 videotestsrc ! video/x-raw-rgb,width=99 ! ximagesink
Works fine for me with latest GIT, can you still reproduce it? If you can we could simply add a stride conversion to ximagesink if bytes_per_line is not width*4
Tim: can you reply the comment #1 ?
Please feel free to reopen this bug if the problem still occurs with a newer version of GStreamer, tia