[Bug 795235] xvimagesink fails: unexpected XShm image size

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Apr 25 20:39:58 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=795235

--- Comment #9 from Nicolas Dufresne (ndufresne) <nicolas at ndufresne.ca> ---
This seems like a generic issue, gst_video_set_format() will add padding
implicitly to avoid burst of unaligned read/write. So as an example, in 905x720
I420 the stride will be set as:

  info->stride[0] = GST_ROUND_UP_4 (width);

So through the stride, we already add a padding_right of 3, but the allocator
is not aware of that. Same thing can happen with height. What I think is that
the code need a tad of refactoring, instead of trying to guess what the driver
should pick, we should just allocated one buffer to read what the driver is
doing. This will likely fixed many issues with our XV implementation.

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


More information about the gstreamer-bugs mailing list