File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed
apps/desktop/src-tauri/src Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -247,9 +247,10 @@ pub async fn create_or_get_video(
247247 . ok ( )
248248 . and_then ( |body| serde_json:: from_str :: < CreateErrorResponse > ( body) . ok ( ) )
249249 && status == StatusCode :: FORBIDDEN
250- && error. error == "upgrade_required" {
251- return Err ( AuthedApiError :: UpgradeRequired ) ;
252- }
250+ && error. error == "upgrade_required"
251+ {
252+ return Err ( AuthedApiError :: UpgradeRequired ) ;
253+ }
253254
254255 return Err ( format ! ( "create_or_get_video/error/{status}: {body:?}" ) . into ( ) ) ;
255256 }
Original file line number Diff line number Diff line change @@ -99,9 +99,7 @@ impl H264EncoderBuilder {
9999 . video ( )
100100 . ok ( )
101101 . and_then ( |codec_video| codec_video. formats ( ) )
102- . is_some_and ( |mut formats| {
103- formats. any ( |f| f == input_config. pixel_format )
104- } ) ;
102+ . is_some_and ( |mut formats| formats. any ( |f| f == input_config. pixel_format ) ) ;
105103
106104 let mut needs_pixel_conversion = false ;
107105
Original file line number Diff line number Diff line change @@ -68,7 +68,9 @@ pub async fn main() {
6868
6969 let ff_frame = video_frame. as_ffmpeg ( ) . unwrap ( ) ;
7070
71- ff_frame. width ( ) ; ff_frame. height ( ) ; ff_frame. format ( ) ;
71+ ff_frame. width ( ) ;
72+ ff_frame. height ( ) ;
73+ ff_frame. format ( ) ;
7274 } )
7375 . with_stop_with_err_cb ( |stream, error| {
7476 ( stream, error) ;
You can’t perform that action at this time.
0 commit comments