Skip to content

Commit 47a3ca6

Browse files
committed
fix(recording): exit macOS MP4 encoder workers on QueueFrameError::Finished
Made-with: Cursor
1 parent 25c1d85 commit 47a3ca6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • crates/recording/src/output_pipeline

crates/recording/src/output_pipeline/macos.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ impl Muxer for AVFoundationMp4Muxer {
388388
set_fatal_error(&video_fatal_error, message.clone());
389389
return Err(anyhow!(message));
390390
}
391+
Err(QueueFrameError::Finished) => return Ok(()),
391392
Err(e) => {
392393
warn!("Failed to encode video frame: {e}");
393394
break;
@@ -510,6 +511,7 @@ impl Muxer for AVFoundationMp4Muxer {
510511
set_fatal_error(&audio_fatal_error, message.clone());
511512
return Err(anyhow!(message));
512513
}
514+
Err(QueueFrameError::Finished) => return Ok(()),
513515
Err(e) => {
514516
warn!("Failed to encode audio frame: {e}");
515517
break;
@@ -874,6 +876,7 @@ impl Muxer for AVFoundationCameraMuxer {
874876
set_fatal_error(&video_fatal_error, message.clone());
875877
return Err(anyhow!(message));
876878
}
879+
Err(QueueFrameError::Finished) => return Ok(()),
877880
Err(e) => {
878881
warn!("Failed to encode camera frame: {e}");
879882
break;

0 commit comments

Comments
 (0)