File tree Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ pub fn capture_thread(
4444 api : impl PlatformApi + Sync ,
4545 win_id : WindowId ,
4646 time_codes : Arc < Mutex < Vec < u128 > > > ,
47- tempdir : Arc < TempDir > ,
47+ tempdir : Arc < Mutex < TempDir > > ,
4848 frame_drop_strategy : & FrameDropStrategy ,
4949 framerate : & Framerate ,
5050) -> Result < ( ) > {
@@ -130,19 +130,6 @@ pub fn capture_thread(
130130 Ok ( ( ) )
131131}
132132
133- fn capture_and_save_frame (
134- api : Arc < impl PlatformApi + Sync > ,
135- win_id : WindowId ,
136- timecode : u128 ,
137- tempdir : Arc < Mutex < TempDir > > ,
138- file_name_fn : fn ( & u128 , & str ) -> String ,
139- ) -> Result < ( ) > {
140- let mut result: Result < ( ) > = Ok ( ( ) ) ;
141- rayon:: scope ( |s| s. spawn ( |_| { } ) ) ;
142-
143- Ok ( ( ) )
144- }
145-
146133/// saves a frame as a tga file
147134pub fn save_frame (
148135 image : & ImageOnHeap ,
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ fn main() -> Result<()> {
8181 let frame_drop_strategy = args
8282 . is_present ( "natural-mode" )
8383 . then ( || FrameDropStrategy :: DoNotDropAny )
84- . unwrap_or_else ( || FrameDropStrategy :: DropIdenticalFrames ) ;
84+ . unwrap_or ( FrameDropStrategy :: DropIdenticalFrames ) ;
8585 let should_generate_gif = !args. is_present ( "video-only" ) ;
8686 let should_generate_video = args. is_present ( "video" ) || args. is_present ( "video-only" ) ;
8787 let ( start_delay, end_delay) = (
@@ -92,7 +92,7 @@ fn main() -> Result<()> {
9292 . value_of ( "framerate" )
9393 . unwrap ( )
9494 . parse :: < u32 > ( )
95- . map ( |f| Framerate :: new ( f ) )
95+ . map ( Framerate :: new)
9696 . context ( "Invalid value for framerate" ) ?;
9797
9898 if should_generate_gif {
You can’t perform that action at this time.
0 commit comments