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 796565 - waylandsink: Error when trying to playback 348x240 in I420
waylandsink: Error when trying to playback 348x240 in I420
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-06-11 21:50 UTC by Nicolas Dufresne (ndufresne)
Modified: 2018-11-03 14:26 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Nicolas Dufresne (ndufresne) 2018-06-11 21:50:48 UTC
There is an error when trying to playback 348x240. This was reported in a comment here:

  https://bugzilla.gnome.org/show_bug.cgi?id=790057#c28

The issue is that the code currently assumes that the GStreamer default strides will match the validation code. But this is not true for I420, since GStreamer will round up by 4 the U and the V stride. So we endup with strides:
  
  Gst:       348 176 176
  Validate:  348 174 174

I've looked into Weston code, it seems to expect the validated value. Which we means the failure is correct, we do have an incompatible SHM based wl_buffer. The following is an attempt to try and allocate the SHM based wl_buffer with the following data. Though, it does not render properly in Weston. I have spent quite some time to figure-out why, but could not. Here's the WIP branch:

https://gitlab.collabora.com/nicolas/gst-plugins-bad/commits/wayland-pool-fix
Comment 1 Haihua Hu 2018-07-19 01:58:47 UTC
Hi, Any update for this issue?
Comment 2 Nicolas Dufresne (ndufresne) 2018-07-19 12:36:34 UTC
If there was any update, I would have updated this bug. Feel free to grab my branch and continue, as even after the fix it fails in Weston, it didn't become a priority. It seems this have to be tested and fixed there first. I don't have any other compositor to work with.
Comment 3 GStreamer system administrator 2018-11-03 14:26:20 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/733.