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 792874 - waylandsink: gst-launch-1.0 windows does not mimic application well
waylandsink: gst-launch-1.0 windows does not mimic application well
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal minor
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-01-24 16:25 UTC by Nicolas Dufresne (ndufresne)
Modified: 2018-11-03 14:17 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Nicolas Dufresne (ndufresne) 2018-01-24 16:25:27 UTC
Title is a little vagues, but how waylandsink works is that the application passes a Surface, and waylandsink attach two subsurfaces to it (back plane for the black borders, and the video layer).

Though, when testing with gst-launch-1.0, the created "window" do have a surface, but that surface does not have a buffer attached to it. That makes gnome-shell think the "window" has a size of 0x0, while weston will assume the size of the sub-surfaces.

This is more visible if you set a render rectangle on that created windows, since this endup having absolutely no effect. I "think" that to better mimic applications we should attach a background buffer to this window, at the size we want this window to be. And update that surface when the window is being resized. We could make this background blue or something, that will ease testing the VideoOverlay render rectangle implementation, which seems to have some problems atm.
Comment 1 Daniel Stone 2018-05-09 12:46:49 UTC
I'm not 100% clear on the exact issue, but it's possible you can get around this by porting from wl_shell to xdg_shell, and then using the set_window_geometry request on the xdg surface.
Comment 2 Nicolas Dufresne (ndufresne) 2018-05-10 14:15:43 UTC
That apparently was a gnome-shell bug, I cannot reproduce on 3.28. Yet, maybe it's best to port to xdg_shell and just retitle this bug. Maximizing and unmaximazing is not reliable still with gnome-shell/wl_shell. It's all a bit pointless to use that extension really. I'm also temped to add code to decorate minimally so that we go back on par with X11 test window.
Comment 3 GStreamer system administrator 2018-11-03 14:17:33 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/650.