Regenerate with latest gir

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1353>
This commit is contained in:
Sebastian Dröge 2023-11-29 11:59:03 +02:00
parent a05e3fed14
commit 59420b1590
60 changed files with 79 additions and 89 deletions

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -77,7 +77,7 @@ pub trait MetaContainerExt: IsA<MetaContainer> + sealed::Sealed + 'static {
let container = from_glib_borrow(container); let container = from_glib_borrow(container);
let key: Borrowed<glib::GString> = from_glib_borrow(key); let key: Borrowed<glib::GString> = from_glib_borrow(key);
let value = from_glib_borrow(value); let value = from_glib_borrow(value);
let callback: *mut P = user_data as *const _ as usize as *mut P; let callback = user_data as *mut P;
(*callback)(&container, key.as_str(), &value) (*callback)(&container, key.as_str(), &value)
} }
let func = Some(func_func::<P> as _); let func = Some(func_func::<P> as _);
@ -86,7 +86,7 @@ pub trait MetaContainerExt: IsA<MetaContainer> + sealed::Sealed + 'static {
ffi::ges_meta_container_foreach( ffi::ges_meta_container_foreach(
self.as_ref().to_glib_none().0, self.as_ref().to_glib_none().0,
func, func,
super_callback0 as *const _ as usize as *mut _, super_callback0 as *const _ as *mut _,
); );
} }
} }

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -68,7 +68,7 @@ pub trait GLFilterExt: IsA<GLFilter> + sealed::Sealed + 'static {
) -> glib::ffi::gboolean { ) -> glib::ffi::gboolean {
let filter = from_glib_borrow(filter); let filter = from_glib_borrow(filter);
let in_tex = from_glib_borrow(in_tex); let in_tex = from_glib_borrow(in_tex);
let callback: *mut P = user_data as *const _ as usize as *mut P; let callback = user_data as *mut P;
(*callback)(&filter, &in_tex).into_glib() (*callback)(&filter, &in_tex).into_glib()
} }
let func = Some(func_func::<P> as _); let func = Some(func_func::<P> as _);
@ -80,7 +80,7 @@ pub trait GLFilterExt: IsA<GLFilter> + sealed::Sealed + 'static {
mut_override(input.to_glib_none().0), mut_override(input.to_glib_none().0),
mut_override(output.to_glib_none().0), mut_override(output.to_glib_none().0),
func, func,
super_callback0 as *const _ as usize as *mut _ super_callback0 as *const _ as *mut _
), ),
"`func` returned `false`" "`func` returned `false`"
) )

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -149,9 +149,7 @@ pub trait RTSPClientExt: IsA<RTSPClient> + sealed::Sealed + 'static {
) -> ffi::GstRTSPFilterResult { ) -> ffi::GstRTSPFilterResult {
let client = from_glib_borrow(client); let client = from_glib_borrow(client);
let sess = from_glib_borrow(sess); let sess = from_glib_borrow(sess);
let callback: *mut Option< let callback = user_data
&mut dyn (FnMut(&RTSPClient, &RTSPSession) -> RTSPFilterResult),
> = user_data as *const _ as usize
as *mut Option<&mut dyn (FnMut(&RTSPClient, &RTSPSession) -> RTSPFilterResult)>; as *mut Option<&mut dyn (FnMut(&RTSPClient, &RTSPSession) -> RTSPFilterResult)>;
if let Some(ref mut callback) = *callback { if let Some(ref mut callback) = *callback {
callback(&client, &sess) callback(&client, &sess)
@ -172,7 +170,7 @@ pub trait RTSPClientExt: IsA<RTSPClient> + sealed::Sealed + 'static {
FromGlibPtrContainer::from_glib_full(ffi::gst_rtsp_client_session_filter( FromGlibPtrContainer::from_glib_full(ffi::gst_rtsp_client_session_filter(
self.as_ref().to_glib_none().0, self.as_ref().to_glib_none().0,
func, func,
super_callback0 as *const _ as usize as *mut _, super_callback0 as *const _ as *mut _,
)) ))
} }
} }

View file

@ -80,9 +80,7 @@ pub trait RTSPServerExt: IsA<RTSPServer> + sealed::Sealed + 'static {
) -> ffi::GstRTSPFilterResult { ) -> ffi::GstRTSPFilterResult {
let server = from_glib_borrow(server); let server = from_glib_borrow(server);
let client = from_glib_borrow(client); let client = from_glib_borrow(client);
let callback: *mut Option< let callback = user_data
&mut dyn (FnMut(&RTSPServer, &RTSPClient) -> RTSPFilterResult),
> = user_data as *const _ as usize
as *mut Option<&mut dyn (FnMut(&RTSPServer, &RTSPClient) -> RTSPFilterResult)>; as *mut Option<&mut dyn (FnMut(&RTSPServer, &RTSPClient) -> RTSPFilterResult)>;
if let Some(ref mut callback) = *callback { if let Some(ref mut callback) = *callback {
callback(&server, &client) callback(&server, &client)
@ -103,7 +101,7 @@ pub trait RTSPServerExt: IsA<RTSPServer> + sealed::Sealed + 'static {
FromGlibPtrContainer::from_glib_full(ffi::gst_rtsp_server_client_filter( FromGlibPtrContainer::from_glib_full(ffi::gst_rtsp_server_client_filter(
self.as_ref().to_glib_none().0, self.as_ref().to_glib_none().0,
func, func,
super_callback0 as *const _ as usize as *mut _, super_callback0 as *const _ as *mut _,
)) ))
} }
} }

View file

@ -61,9 +61,7 @@ pub trait RTSPSessionExt: IsA<RTSPSession> + sealed::Sealed + 'static {
) -> ffi::GstRTSPFilterResult { ) -> ffi::GstRTSPFilterResult {
let sess = from_glib_borrow(sess); let sess = from_glib_borrow(sess);
let media = from_glib_borrow(media); let media = from_glib_borrow(media);
let callback: *mut Option< let callback = user_data
&mut dyn (FnMut(&RTSPSession, &RTSPSessionMedia) -> RTSPFilterResult),
> = user_data as *const _ as usize
as *mut Option< as *mut Option<
&mut dyn (FnMut(&RTSPSession, &RTSPSessionMedia) -> RTSPFilterResult), &mut dyn (FnMut(&RTSPSession, &RTSPSessionMedia) -> RTSPFilterResult),
>; >;
@ -86,7 +84,7 @@ pub trait RTSPSessionExt: IsA<RTSPSession> + sealed::Sealed + 'static {
FromGlibPtrContainer::from_glib_full(ffi::gst_rtsp_session_filter( FromGlibPtrContainer::from_glib_full(ffi::gst_rtsp_session_filter(
self.as_ref().to_glib_none().0, self.as_ref().to_glib_none().0,
func, func,
super_callback0 as *const _ as usize as *mut _, super_callback0 as *const _ as *mut _,
)) ))
} }
} }

View file

@ -75,9 +75,7 @@ pub trait RTSPSessionPoolExt: IsA<RTSPSessionPool> + sealed::Sealed + 'static {
) -> ffi::GstRTSPFilterResult { ) -> ffi::GstRTSPFilterResult {
let pool = from_glib_borrow(pool); let pool = from_glib_borrow(pool);
let session = from_glib_borrow(session); let session = from_glib_borrow(session);
let callback: *mut Option< let callback = user_data
&mut dyn (FnMut(&RTSPSessionPool, &RTSPSession) -> RTSPFilterResult),
> = user_data as *const _ as usize
as *mut Option< as *mut Option<
&mut dyn (FnMut(&RTSPSessionPool, &RTSPSession) -> RTSPFilterResult), &mut dyn (FnMut(&RTSPSessionPool, &RTSPSession) -> RTSPFilterResult),
>; >;
@ -100,7 +98,7 @@ pub trait RTSPSessionPoolExt: IsA<RTSPSessionPool> + sealed::Sealed + 'static {
FromGlibPtrContainer::from_glib_full(ffi::gst_rtsp_session_pool_filter( FromGlibPtrContainer::from_glib_full(ffi::gst_rtsp_session_pool_filter(
self.as_ref().to_glib_none().0, self.as_ref().to_glib_none().0,
func, func,
super_callback0 as *const _ as usize as *mut _, super_callback0 as *const _ as *mut _,
)) ))
} }
} }

View file

@ -889,9 +889,7 @@ pub trait RTSPStreamExt: IsA<RTSPStream> + sealed::Sealed + 'static {
) -> ffi::GstRTSPFilterResult { ) -> ffi::GstRTSPFilterResult {
let stream = from_glib_borrow(stream); let stream = from_glib_borrow(stream);
let trans = from_glib_borrow(trans); let trans = from_glib_borrow(trans);
let callback: *mut Option< let callback = user_data
&mut dyn (FnMut(&RTSPStream, &RTSPStreamTransport) -> RTSPFilterResult),
> = user_data as *const _ as usize
as *mut Option< as *mut Option<
&mut dyn (FnMut(&RTSPStream, &RTSPStreamTransport) -> RTSPFilterResult), &mut dyn (FnMut(&RTSPStream, &RTSPStreamTransport) -> RTSPFilterResult),
>; >;
@ -914,7 +912,7 @@ pub trait RTSPStreamExt: IsA<RTSPStream> + sealed::Sealed + 'static {
FromGlibPtrContainer::from_glib_full(ffi::gst_rtsp_stream_transport_filter( FromGlibPtrContainer::from_glib_full(ffi::gst_rtsp_stream_transport_filter(
self.as_ref().to_glib_none().0, self.as_ref().to_glib_none().0,
func, func,
super_callback0 as *const _ as usize as *mut _, super_callback0 as *const _ as *mut _,
)) ))
} }
} }

View file

@ -170,12 +170,12 @@ pub trait RTSPStreamTransportExt: IsA<RTSPStreamTransport> + sealed::Sealed + 's
fn set_keepalive<P: Fn() + 'static>(&self, keep_alive: P) { fn set_keepalive<P: Fn() + 'static>(&self, keep_alive: P) {
let keep_alive_data: Box_<P> = Box_::new(keep_alive); let keep_alive_data: Box_<P> = Box_::new(keep_alive);
unsafe extern "C" fn keep_alive_func<P: Fn() + 'static>(user_data: glib::ffi::gpointer) { unsafe extern "C" fn keep_alive_func<P: Fn() + 'static>(user_data: glib::ffi::gpointer) {
let callback: &P = &*(user_data as *mut _); let callback = &*(user_data as *mut P);
(*callback)() (*callback)()
} }
let keep_alive = Some(keep_alive_func::<P> as _); let keep_alive = Some(keep_alive_func::<P> as _);
unsafe extern "C" fn notify_func<P: Fn() + 'static>(data: glib::ffi::gpointer) { unsafe extern "C" fn notify_func<P: Fn() + 'static>(data: glib::ffi::gpointer) {
let _callback: Box_<P> = Box_::from_raw(data as *mut _); let _callback = Box_::from_raw(data as *mut P);
} }
let destroy_call3 = Some(notify_func::<P> as _); let destroy_call3 = Some(notify_func::<P> as _);
let super_callback0: Box_<P> = keep_alive_data; let super_callback0: Box_<P> = keep_alive_data;
@ -200,12 +200,12 @@ pub trait RTSPStreamTransportExt: IsA<RTSPStreamTransport> + sealed::Sealed + 's
fn set_message_sent<P: Fn() + 'static>(&self, message_sent: P) { fn set_message_sent<P: Fn() + 'static>(&self, message_sent: P) {
let message_sent_data: Box_<P> = Box_::new(message_sent); let message_sent_data: Box_<P> = Box_::new(message_sent);
unsafe extern "C" fn message_sent_func<P: Fn() + 'static>(user_data: glib::ffi::gpointer) { unsafe extern "C" fn message_sent_func<P: Fn() + 'static>(user_data: glib::ffi::gpointer) {
let callback: &P = &*(user_data as *mut _); let callback = &*(user_data as *mut P);
(*callback)() (*callback)()
} }
let message_sent = Some(message_sent_func::<P> as _); let message_sent = Some(message_sent_func::<P> as _);
unsafe extern "C" fn notify_func<P: Fn() + 'static>(data: glib::ffi::gpointer) { unsafe extern "C" fn notify_func<P: Fn() + 'static>(data: glib::ffi::gpointer) {
let _callback: Box_<P> = Box_::from_raw(data as *mut _); let _callback = Box_::from_raw(data as *mut P);
} }
let destroy_call3 = Some(notify_func::<P> as _); let destroy_call3 = Some(notify_func::<P> as _);
let super_callback0: Box_<P> = message_sent_data; let super_callback0: Box_<P> = message_sent_data;
@ -229,14 +229,14 @@ pub trait RTSPStreamTransportExt: IsA<RTSPStreamTransport> + sealed::Sealed + 's
user_data: glib::ffi::gpointer, user_data: glib::ffi::gpointer,
) { ) {
let trans = from_glib_borrow(trans); let trans = from_glib_borrow(trans);
let callback: &P = &*(user_data as *mut _); let callback = &*(user_data as *mut P);
(*callback)(&trans) (*callback)(&trans)
} }
let message_sent = Some(message_sent_func::<P> as _); let message_sent = Some(message_sent_func::<P> as _);
unsafe extern "C" fn notify_func<P: Fn(&RTSPStreamTransport) + 'static>( unsafe extern "C" fn notify_func<P: Fn(&RTSPStreamTransport) + 'static>(
data: glib::ffi::gpointer, data: glib::ffi::gpointer,
) { ) {
let _callback: Box_<P> = Box_::from_raw(data as *mut _); let _callback = Box_::from_raw(data as *mut P);
} }
let destroy_call3 = Some(notify_func::<P> as _); let destroy_call3 = Some(notify_func::<P> as _);
let super_callback0: Box_<P> = message_sent_data; let super_callback0: Box_<P> = message_sent_data;

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -224,14 +224,14 @@ pub trait WebRTCICEExt: IsA<WebRTCICE> + sealed::Sealed + 'static {
) { ) {
let ice = from_glib_borrow(ice); let ice = from_glib_borrow(ice);
let candidate: Borrowed<glib::GString> = from_glib_borrow(candidate); let candidate: Borrowed<glib::GString> = from_glib_borrow(candidate);
let callback: &P = &*(user_data as *mut _); let callback = &*(user_data as *mut P);
(*callback)(&ice, stream_id, candidate.as_str()) (*callback)(&ice, stream_id, candidate.as_str())
} }
let func = Some(func_func::<P> as _); let func = Some(func_func::<P> as _);
unsafe extern "C" fn notify_func<P: Fn(&WebRTCICE, u32, &str) + Send + Sync + 'static>( unsafe extern "C" fn notify_func<P: Fn(&WebRTCICE, u32, &str) + Send + Sync + 'static>(
data: glib::ffi::gpointer, data: glib::ffi::gpointer,
) { ) {
let _callback: Box_<P> = Box_::from_raw(data as *mut _); let _callback = Box_::from_raw(data as *mut P);
} }
let destroy_call3 = Some(notify_func::<P> as _); let destroy_call3 = Some(notify_func::<P> as _);
let super_callback0: Box_<P> = func_data; let super_callback0: Box_<P> = func_data;

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -135,7 +135,7 @@ pub trait ElementExt: IsA<Element> + sealed::Sealed + 'static {
) -> glib::ffi::gboolean { ) -> glib::ffi::gboolean {
let element = from_glib_borrow(element); let element = from_glib_borrow(element);
let pad = from_glib_borrow(pad); let pad = from_glib_borrow(pad);
let callback: *mut P = user_data as *const _ as usize as *mut P; let callback = user_data as *mut P;
(*callback)(&element, &pad).into_glib() (*callback)(&element, &pad).into_glib()
} }
let func = Some(func_func::<P> as _); let func = Some(func_func::<P> as _);
@ -144,7 +144,7 @@ pub trait ElementExt: IsA<Element> + sealed::Sealed + 'static {
from_glib(ffi::gst_element_foreach_pad( from_glib(ffi::gst_element_foreach_pad(
self.as_ref().to_glib_none().0, self.as_ref().to_glib_none().0,
func, func,
super_callback0 as *const _ as usize as *mut _, super_callback0 as *const _ as *mut _,
)) ))
} }
} }
@ -159,7 +159,7 @@ pub trait ElementExt: IsA<Element> + sealed::Sealed + 'static {
) -> glib::ffi::gboolean { ) -> glib::ffi::gboolean {
let element = from_glib_borrow(element); let element = from_glib_borrow(element);
let pad = from_glib_borrow(pad); let pad = from_glib_borrow(pad);
let callback: *mut P = user_data as *const _ as usize as *mut P; let callback = user_data as *mut P;
(*callback)(&element, &pad).into_glib() (*callback)(&element, &pad).into_glib()
} }
let func = Some(func_func::<P> as _); let func = Some(func_func::<P> as _);
@ -168,7 +168,7 @@ pub trait ElementExt: IsA<Element> + sealed::Sealed + 'static {
from_glib(ffi::gst_element_foreach_sink_pad( from_glib(ffi::gst_element_foreach_sink_pad(
self.as_ref().to_glib_none().0, self.as_ref().to_glib_none().0,
func, func,
super_callback0 as *const _ as usize as *mut _, super_callback0 as *const _ as *mut _,
)) ))
} }
} }
@ -183,7 +183,7 @@ pub trait ElementExt: IsA<Element> + sealed::Sealed + 'static {
) -> glib::ffi::gboolean { ) -> glib::ffi::gboolean {
let element = from_glib_borrow(element); let element = from_glib_borrow(element);
let pad = from_glib_borrow(pad); let pad = from_glib_borrow(pad);
let callback: *mut P = user_data as *const _ as usize as *mut P; let callback = user_data as *mut P;
(*callback)(&element, &pad).into_glib() (*callback)(&element, &pad).into_glib()
} }
let func = Some(func_func::<P> as _); let func = Some(func_func::<P> as _);
@ -192,7 +192,7 @@ pub trait ElementExt: IsA<Element> + sealed::Sealed + 'static {
from_glib(ffi::gst_element_foreach_src_pad( from_glib(ffi::gst_element_foreach_src_pad(
self.as_ref().to_glib_none().0, self.as_ref().to_glib_none().0,
func, func,
super_callback0 as *const _ as usize as *mut _, super_callback0 as *const _ as *mut _,
)) ))
} }
} }

View file

@ -122,7 +122,7 @@ pub trait PadExt: IsA<Pad> + sealed::Sealed + 'static {
user_data: glib::ffi::gpointer, user_data: glib::ffi::gpointer,
) -> glib::ffi::gboolean { ) -> glib::ffi::gboolean {
let pad = from_glib_borrow(pad); let pad = from_glib_borrow(pad);
let callback: *mut P = user_data as *const _ as usize as *mut P; let callback = user_data as *mut P;
(*callback)(&pad).into_glib() (*callback)(&pad).into_glib()
} }
let forward = Some(forward_func::<P> as _); let forward = Some(forward_func::<P> as _);
@ -131,7 +131,7 @@ pub trait PadExt: IsA<Pad> + sealed::Sealed + 'static {
from_glib(ffi::gst_pad_forward( from_glib(ffi::gst_pad_forward(
self.as_ref().to_glib_none().0, self.as_ref().to_glib_none().0,
forward, forward,
super_callback0 as *const _ as usize as *mut _, super_callback0 as *const _ as *mut _,
)) ))
} }
} }

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ c0970367709d) Generated by gir (https://github.com/gtk-rs/gir @ a2f936b77195)
from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40) from gir-files (https://github.com/gtk-rs/gir-files @ 20031a537e40)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)