File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -83,10 +83,7 @@ impl FfiAudioStream {
8383 track_id : rtc_track. id ( ) ,
8484 } ;
8585
86- ( Some ( filter) , Some ( AudioFilterInfo {
87- stream_info,
88- room_handle,
89- } ) )
86+ ( Some ( filter) , Some ( AudioFilterInfo { stream_info, room_handle } ) )
9087 }
9188 None => ( None , None ) ,
9289 } ;
@@ -212,7 +209,8 @@ impl FfiAudioStream {
212209 // track_tx is no longer held, so the track_rx will be closed when track_changed_trigger is done
213210
214211 let url = ffi_participant. room . url ( ) ;
215- let room_sid = ffi_participant. room . room . maybe_sid ( ) . map ( |id| id. to_string ( ) ) . unwrap_or ( "" . into ( ) ) ;
212+ let room_sid =
213+ ffi_participant. room . room . maybe_sid ( ) . map ( |id| id. to_string ( ) ) . unwrap_or ( "" . into ( ) ) ;
216214 let room_name = ffi_participant. room . room . name ( ) ;
217215 let participant_identity = ffi_participant. participant . identity ( ) ;
218216 let participant_id = ffi_participant. participant . sid ( ) ;
@@ -408,7 +406,6 @@ impl FfiAudioStream {
408406 }
409407 }
410408 }
411-
412409}
413410
414411// Used to update audio filter session when the stream info is changed. (Mainly room_id
@@ -426,7 +423,7 @@ impl AudioFilterInfo {
426423 let room_id = room. inner . room . maybe_sid ( ) . map ( |id| id. to_string ( ) ) . unwrap_or ( "" . into ( ) ) ;
427424 if room_id != "" {
428425 self . stream_info . room_id = room_id. into ( ) ;
429- return true
426+ return true ;
430427 }
431428 false
432429 }
Original file line number Diff line number Diff line change @@ -209,7 +209,8 @@ impl AudioFilterSession {
209209 if self . plugin . update_stream_info_fn_ptr . is_null ( ) {
210210 return ;
211211 }
212- let update_stream_info_fn: UpdateStreamInfoFn = unsafe { std:: mem:: transmute ( self . plugin . update_stream_info_fn_ptr ) } ;
212+ let update_stream_info_fn: UpdateStreamInfoFn =
213+ unsafe { std:: mem:: transmute ( self . plugin . update_stream_info_fn_ptr ) } ;
213214 let info_json = serde_json:: to_string ( & info) . unwrap ( ) ;
214215 let info_json = CString :: new ( info_json) . unwrap_or ( CString :: new ( "" ) . unwrap ( ) ) ;
215216 unsafe { update_stream_info_fn ( self . ptr , info_json. as_ptr ( ) ) }
You can’t perform that action at this time.
0 commit comments