mirror of
https://github.com/games-on-whales/gst-wayland-display.git
synced 2026-10-15 21:02:00 +00:00
[PR #26] [MERGED] fix: use proper function to get VideoFormat from fourcc #28
Labels
No labels
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
games-on-whales/gst-wayland-display#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/games-on-whales/gst-wayland-display/pull/26
Author: @mhebant
Created: 2/25/2026
Status: ✅ Merged
Merged: 2/25/2026
Merged by: @ABeltramo
Base:
stable← Head:stable📝 Commits (2)
e89c1a2fix: use proper function to getVideoFormatfrom fourccc3ee191fmt: run cargo fmt📊 Changes
2 files changed (+74 additions, -37 deletions)
View changed files
📝
gst-plugin-wayland-display/src/waylandsrc/imp.rs(+71 -31)📝
wayland-display-core/src/utils/allocator/mod.rs(+3 -6)📄 Description
Just a very small fix, as I was also struggling with this and just found a better way
VideoFormat::from_fourcccalls the c functiongst_video_format_from_fourccwhich only works on YUV formats [1]
Instead use
gst_video_dma_drm_fourcc_to_formatwhich works on a wider range of formats.[1] https://gstreamer.freedesktop.org/documentation/video/video-format.html?gi-language=c#gst_video_format_from_fourcc
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.