File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ where
118118 let delegate = delegate ! ( "AppDelegate" , {
119119 app: id = app,
120120 send: * const c_void = Box :: into_raw( Box :: new( send) ) as * const c_void,
121- ( applicationDidFinishLaunching: ) => on_finish_launching as extern fn ( & Object , Sel , id)
121+ ( applicationDidFinishLaunching: ) => on_finish_launching as extern "C" fn ( & Object , Sel , id)
122122 } ) ;
123123 let _: ( ) = msg_send ! [ app, setDelegate: delegate] ;
124124
Original file line number Diff line number Diff line change 9393 let delegate = delegate ! ( "AppDelegate" , {
9494 app: id = app,
9595 send: * const c_void = Box :: into_raw( Box :: new( send) ) as * const c_void,
96- ( applicationDidFinishLaunching: ) => on_finish_launching as extern fn ( & Object , Sel , id)
96+ ( applicationDidFinishLaunching: ) => on_finish_launching as extern "C" fn ( & Object , Sel , id)
9797 } ) ;
9898 app. setDelegate_ ( delegate) ;
9999
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ unsafe impl Send for VideoAnomalyMeta {}
2828unsafe impl Sync for VideoAnomalyMeta { }
2929
3030impl VideoClassificationMeta {
31- pub fn add ( buffer : & mut gst:: BufferRef ) -> gst:: MetaRefMut < Self , gst:: meta:: Standalone > {
31+ pub fn add ( buffer : & mut gst:: BufferRef ) -> gst:: MetaRefMut < ' _ , Self , gst:: meta:: Standalone > {
3232 unsafe {
3333 // First add it with empty params
3434 let meta = gst:: ffi:: gst_buffer_add_meta (
@@ -57,7 +57,7 @@ impl VideoClassificationMeta {
5757}
5858
5959impl VideoAnomalyMeta {
60- pub fn add ( buffer : & mut gst:: BufferRef ) -> gst:: MetaRefMut < Self , gst:: meta:: Standalone > {
60+ pub fn add ( buffer : & mut gst:: BufferRef ) -> gst:: MetaRefMut < ' _ , Self , gst:: meta:: Standalone > {
6161 unsafe {
6262 // First add it with empty params
6363 let meta = gst:: ffi:: gst_buffer_add_meta (
You can’t perform that action at this time.
0 commit comments