Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • W weston
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 316
    • Issues 316
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 117
    • Merge requests 117
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • wayland
  • weston
  • Issues
  • #23

Closed
Open
Created 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
Time tracking