Skip to content

Commit

Permalink
fix can't compile tvOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo4405 committed Oct 18, 2021
1 parent 38f34c4 commit f28aac2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Media/AVMixer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,11 @@ public class AVMixer {
}

deinit {
#if os(iOS) || os(macOS)
if let session = _session, session.isRunning {
session.stopRunning()
}
#endif
}
}

Expand Down

0 comments on commit f28aac2

Please sign in to comment.