pion / mediadevices

Go implementation of the MediaDevices API.
https://pion.ly/
MIT License
540 stars 123 forks source link

allow to close the avfoundation device multiple time #419

Closed EmrysMyrddin closed 2 years ago

EmrysMyrddin commented 2 years ago

Description

Allow to close multiple time an avfoundation. For now, when closing an alreacy closed VideoTrack comming from avfoundation leads to a panic (close of closed channel)

codecov[bot] commented 2 years ago

Codecov Report

Merging #419 (c93efe8) into master (43272ea) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #419   +/-   ##
=======================================
  Coverage   47.23%   47.23%           
=======================================
  Files          67       67           
  Lines        4456     4456           
=======================================
  Hits         2105     2105           
  Misses       2226     2226           
  Partials      125      125           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 43272ea...c93efe8. Read the comment docs.