mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-25 01:34:02 +00:00
Pass tracks to Rust unretained
We always call CFRetain when constructing a track on the Rust side.
This commit is contained in:
parent
59fab0bb2d
commit
a42a703b35
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ class LKRoomDelegate: RoomDelegate {
|
|||
|
||||
func room(_ room: Room, participant: RemoteParticipant, didSubscribe publication: RemoteTrackPublication, track: Track) {
|
||||
if track.kind == .video {
|
||||
self.onDidSubscribeToRemoteVideoTrack(self.data, participant.identity as CFString, track.id as CFString, Unmanaged.passRetained(track).toOpaque())
|
||||
self.onDidSubscribeToRemoteVideoTrack(self.data, participant.identity as CFString, track.id as CFString, Unmanaged.passUnretained(track).toOpaque())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue