Bug 1724900: WebRTC backport: PipeWire video capture - set device unique ID during initialization r=pehrsons,webrtc-reviewers

This is a simple backport of an WebRTC upstream change.

Upstream commit: 4beafa38d546ab6c0bb423c12762f0c4568aa5ce

Differential Revision: https://phabricator.services.mozilla.com/D176626
This commit is contained in:
Jan Grulich 2023-06-15 12:41:55 +00:00
parent 4715b5a927
commit 8a3869b500
2 changed files with 5 additions and 0 deletions

View File

@ -62,6 +62,10 @@ int32_t VideoCaptureModulePipeWire::Init(const char* deviceUniqueId) {
node_id_ = id.value();
const int len = strlen(deviceUniqueId);
_deviceUniqueId = new (std::nothrow) char[len + 1];
memcpy(_deviceUniqueId, deviceUniqueId, len + 1);
return 0;
}

View File

@ -0,0 +1 @@
We cherry-picked this in bug 1724900