Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
W
weston
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 274
    • Issues 274
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 121
    • Merge Requests 121
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • wayland
  • weston
  • Issues
  • #23

Closed
Open
Opened Nov 23, 2017 by Bugzilla Migration User@bugzilla-migration

Importing Read-Only FD from Pipewire to compositor fails

Submitted by Nicolas Dufresne @nicolas.dufresne

Assigned to Nicolas Dufresne @nicolas.dufresne

Link to original bug (#7870)

Description

As of current implementation, libwayland-server will always mmap RW the passed FD. As I was doing yet another round of maintaince to GStreamer waylandsink, I wanted to test passing FD from the new media server Pipewire (as shipped in Fedora 27) to Weston. I quickly found out that it failed because the libwayland-server tries to map Rread/Write these FD (see shm_create_pool()).

For the context, one of the reason Pipewire exists is to multi-plex camera output to multiple clients. The server is a real time process and cannot afford copying the buffer for every client, hence the FD being read/only. We need a way to pass this information to the compositor so it knows what this SHM "pool" can or cannot be used for.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: wayland/weston#23