Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Move MAX_QUEUE_RETRIES to struct impl block

Richie McIlroy5727d9888120
diff --git a/crates/recording/src/output_pipeline/macos.rs b/crates/recording/src/output_pipeline/macos.rs
index 2b3a74de5..6c67459db 100644
--- a/crates/recording/src/output_pipeline/macos.rs
+++ b/crates/recording/src/output_pipeline/macos.rs
@@ -17,6 +17,10 @@ pub struct AVFoundationMp4Muxer(
Arc<AtomicBool>,
);
+impl AVFoundationMp4Muxer {
+ const MAX_QUEUE_RETRIES: u32 = 500;
+}
+
#[derive(Default)]
pub struct AVFoundationMp4MuxerConfig {
pub output_height: Option<u32>,
@@ -63,8 +67,6 @@ impl Muxer for AVFoundationMp4Muxer {
impl VideoMuxer for AVFoundationMp4Muxer {
type VideoFrame = screen_capture::VideoFrame;
- const MAX_QUEUE_RETRIES: u32 = 500;
-
fn send_video_frame(
&mut self,
frame: Self::VideoFrame,