File tree Expand file tree Collapse file tree
apps/desktop/src-tauri/src
crates/recording/src/output_pipeline Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,14 +116,20 @@ pub struct FinalizingRecordings {
116116
117117impl FinalizingRecordings {
118118 pub fn start_finalizing ( & self , path : PathBuf ) -> watch:: Receiver < bool > {
119- let mut recordings = self . recordings . lock ( ) . unwrap ( ) ;
119+ let mut recordings = self
120+ . recordings
121+ . lock ( )
122+ . expect ( "FinalizingRecordings mutex poisoned" ) ;
120123 let ( tx, rx) = watch:: channel ( false ) ;
121124 recordings. insert ( path, ( tx, rx. clone ( ) ) ) ;
122125 rx
123126 }
124127
125128 pub fn finish_finalizing ( & self , path : & Path ) {
126- let mut recordings = self . recordings . lock ( ) . unwrap ( ) ;
129+ let mut recordings = self
130+ . recordings
131+ . lock ( )
132+ . expect ( "FinalizingRecordings mutex poisoned" ) ;
127133 if let Some ( ( tx, _) ) = recordings. remove ( path)
128134 && tx. send ( true ) . is_err ( )
129135 {
Original file line number Diff line number Diff line change @@ -446,7 +446,7 @@ impl FramePool {
446446 self . height ,
447447 ) ) ;
448448 }
449- self . frame . as_mut ( ) . unwrap ( )
449+ self . frame . as_mut ( ) . expect ( "frame initialized above" )
450450 }
451451
452452 fn take_frame ( & mut self ) -> ffmpeg:: frame:: Video {
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ declare global {
8686 const IconLucideGift : typeof import ( '~icons/lucide/gift.jsx' ) [ 'default' ]
8787 const IconLucideHardDrive : typeof import ( '~icons/lucide/hard-drive.jsx' ) [ 'default' ]
8888 const IconLucideImage : typeof import ( '~icons/lucide/image.jsx' ) [ 'default' ]
89+ const IconLucideInfo : typeof import ( '~icons/lucide/info.jsx' ) [ 'default' ]
8990 const IconLucideLayout : typeof import ( '~icons/lucide/layout.jsx' ) [ 'default' ]
9091 const IconLucideLoader2 : typeof import ( '~icons/lucide/loader2.jsx' ) [ 'default' ]
9192 const IconLucideLoaderCircle : typeof import ( '~icons/lucide/loader-circle.jsx' ) [ 'default' ]
You can’t perform that action at this time.
0 commit comments