Closed Bug 1902618 Opened 1 year ago Closed 1 year ago

PipeWire camera: backport upstream mmap() fixes

Categories

(Core :: WebRTC: Audio/Video, defect)

defect

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox128 --- fixed
firefox129 --- fixed

People

(Reporter: jgrulich, Assigned: jgrulich)

Details

Attachments

(2 files)

There are two recent upstream fixes for how we mmap() PipeWire buffers to properly use offset and change in use of MAP_SHARED instead of MAP_PRIVATE to fix some dmabuf types that are not working when libcamera is used.

Fixes:
https://webrtc-review.googlesource.com/c/src/+/354521
https://webrtc-review.googlesource.com/c/src/+/354623

This is a simple backport of an WebRTC upstream change.

Upstream commit: 3252f5d8e481b65571ebb95801754a10dc910632

Assignee: nobody → jgrulich
Status: NEW → ASSIGNED

This is a simple backport of an WebRTC upstream change.

Upstream commit: 025d69b4d0df05f54d7bfcb3a4a2b35b48b83d82

Pushed by robert.mader@posteo.de: https://hg.mozilla.org/integration/autoland/rev/bfd83b291139 WebRTC backport: PipeWire capture: fix mmap arguments r=pehrsons,webrtc-reviewers https://hg.mozilla.org/integration/autoland/rev/09f0b8ff3d06 WebRTC backport: PipeWire video capture: mmap() PipeWire buffers with MAP_SHARED r=pehrsons,webrtc-reviewers
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch

Comment on attachment 9407477 [details]
Bug 1902618 - WebRTC backport: PipeWire video capture: mmap() PipeWire buffers with MAP_SHARED r=pehrsons

Beta/Release Uplift Approval Request

  • User impact if declined: This is a set of simple WebRTC backports allowing to use PipeWire camera with libcamera software ISP. This is needed for laptops with Snapdragon chips. There is no risk backporting these patches, they are simple and straightforward and also PipeWire camera is not enabled by default in Firefox. Since the next Firefox 128 is an ESR release, we think it makes sense to include these fixes.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Simple fix changing a parameter in a mmap() call from MAP_PRIVATE to MAP_SHARED. This is not a risky change since we just mmap() the memory with read-only anyway. This fixes access to some dmabuf types.
  • String changes made/needed:
  • Is Android affected?: No
Attachment #9407477 - Flags: approval-mozilla-beta?

Comment on attachment 9407476 [details]
Bug 1902618 - WebRTC backport: PipeWire capture: fix mmap arguments r=pehrsons

Approved for 128.0b5.

Attachment #9407476 - Flags: approval-mozilla-beta+
Attachment #9407477 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: