There was an error while loading. Please reload this page.
1 parent f881ab7 commit 4225d33Copy full SHA for 4225d33
1 file changed
tests/integration_tests.rs
@@ -25,7 +25,9 @@ impl SCStreamOutputTrait for VideoTestOutput {
25
sample_buffer: CMSampleBuffer,
26
_of_type: SCStreamOutputType,
27
) {
28
- self.samples.lock().unwrap().push(sample_buffer);
+ if let Ok(mut guard) = self.samples.lock() {
29
+ guard.push(sample_buffer);
30
+ }
31
}
32
33
@@ -40,7 +42,9 @@ impl SCStreamOutputTrait for AudioTestOutput {
40
42
41
43
44
45
46
47
48
49
50
0 commit comments