[Bug 795235] xvimagesink fails: unexpected XShm image size

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Apr 17 20:02:18 UTC 2018


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

--- Comment #6 from David Woodhouse <dwmw2 at infradead.org> ---
This appears to fix it. It doesn't make me happy.

--- a/sys/xvimage/xvimagepool.c
+++ b/sys/xvimage/xvimagepool.c
@@ -122,6 +122,16 @@ xvimage_buffer_pool_set_config (GstBufferPool * pool,
GstStructure * config)
       GST_VIDEO_INFO_HEIGHT (&info) + xvpool->align.padding_top +
       xvpool->align.padding_bottom;

+  /*
+   * Work around the fact that all the Xv drivers seem to do weird
+   * things for widths which are one greater than a multiple of 8.
+   * https://bugzilla.gnome.org/show_bug.cgi?id=795235
+   */
+  if ((xvpool->padded_width & 7) == 1) {
+         xvpool->padded_width++;
+         xvpool->align.padding_right++;
+  }
+
   xvpool->info = info;
   xvpool->crop.x = xvpool->align.padding_left;
   xvpool->crop.y = xvpool->align.padding_top;

-- 
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