Skip to content

fix: keep camera ownership consistent and fail switches peers did not take - #427

Merged
devopvoid merged 1 commit into
mainfrom
fix/camera-switch-ownership
Oct 23, 2026
Merged

devopvoid merged 1 commit into
mainfrom
fix/camera-switch-ownership

Conversation

@devopvoid

Copy link
Copy Markdown
Owner
  • A switch that lets go of the camera first takes the release from the track, so closing the track no longer releases the camera twice. A track that can open neither camera again ends.
  • The camera cache only drops an entry that still points to the released camera.
  • A sender that fails to take the new track, or does not take it in time, now fails switchCamera(). The track goes back to the old camera while that is still open, and keeps the new one otherwise.
  • Replaced tracks and cameras are released once no sender uses them.

… take

A switch that lets go of the camera first takes the release from the track,
and ends the track when neither camera opens again; the camera cache only
drops an entry that is still the camera released. A sender that cannot take
the new track, or does not in time, now fails the switch, which goes back to
the old camera while it is still open. Replaced tracks are released once no
sender uses them.
@devopvoid
devopvoid merged commit a15436d into main Oct 23, 2026
24 of 25 checks passed
@devopvoid
devopvoid deleted the fix/camera-switch-ownership branch October 23, 2026 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant