mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-21 17:11:04 +00:00
Regenerate with latest gir
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1353>
This commit is contained in:
parent
a05e3fed14
commit
59420b1590
60 changed files with 79 additions and 89 deletions
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -77,7 +77,7 @@ pub trait MetaContainerExt: IsA<MetaContainer> + sealed::Sealed + 'static {
|
|||
let container = from_glib_borrow(container);
|
||||
let key: Borrowed<glib::GString> = from_glib_borrow(key);
|
||||
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)
|
||||
}
|
||||
let func = Some(func_func::<P> as _);
|
||||
|
@ -86,7 +86,7 @@ pub trait MetaContainerExt: IsA<MetaContainer> + sealed::Sealed + 'static {
|
|||
ffi::ges_meta_container_foreach(
|
||||
self.as_ref().to_glib_none().0,
|
||||
func,
|
||||
super_callback0 as *const _ as usize as *mut _,
|
||||
super_callback0 as *const _ as *mut _,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -68,7 +68,7 @@ pub trait GLFilterExt: IsA<GLFilter> + sealed::Sealed + 'static {
|
|||
) -> glib::ffi::gboolean {
|
||||
let filter = from_glib_borrow(filter);
|
||||
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()
|
||||
}
|
||||
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(output.to_glib_none().0),
|
||||
func,
|
||||
super_callback0 as *const _ as usize as *mut _
|
||||
super_callback0 as *const _ as *mut _
|
||||
),
|
||||
"`func` returned `false`"
|
||||
)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -149,9 +149,7 @@ pub trait RTSPClientExt: IsA<RTSPClient> + sealed::Sealed + 'static {
|
|||
) -> ffi::GstRTSPFilterResult {
|
||||
let client = from_glib_borrow(client);
|
||||
let sess = from_glib_borrow(sess);
|
||||
let callback: *mut Option<
|
||||
&mut dyn (FnMut(&RTSPClient, &RTSPSession) -> RTSPFilterResult),
|
||||
> = user_data as *const _ as usize
|
||||
let callback = user_data
|
||||
as *mut Option<&mut dyn (FnMut(&RTSPClient, &RTSPSession) -> RTSPFilterResult)>;
|
||||
if let Some(ref mut callback) = *callback {
|
||||
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(
|
||||
self.as_ref().to_glib_none().0,
|
||||
func,
|
||||
super_callback0 as *const _ as usize as *mut _,
|
||||
super_callback0 as *const _ as *mut _,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -80,9 +80,7 @@ pub trait RTSPServerExt: IsA<RTSPServer> + sealed::Sealed + 'static {
|
|||
) -> ffi::GstRTSPFilterResult {
|
||||
let server = from_glib_borrow(server);
|
||||
let client = from_glib_borrow(client);
|
||||
let callback: *mut Option<
|
||||
&mut dyn (FnMut(&RTSPServer, &RTSPClient) -> RTSPFilterResult),
|
||||
> = user_data as *const _ as usize
|
||||
let callback = user_data
|
||||
as *mut Option<&mut dyn (FnMut(&RTSPServer, &RTSPClient) -> RTSPFilterResult)>;
|
||||
if let Some(ref mut callback) = *callback {
|
||||
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(
|
||||
self.as_ref().to_glib_none().0,
|
||||
func,
|
||||
super_callback0 as *const _ as usize as *mut _,
|
||||
super_callback0 as *const _ as *mut _,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -61,9 +61,7 @@ pub trait RTSPSessionExt: IsA<RTSPSession> + sealed::Sealed + 'static {
|
|||
) -> ffi::GstRTSPFilterResult {
|
||||
let sess = from_glib_borrow(sess);
|
||||
let media = from_glib_borrow(media);
|
||||
let callback: *mut Option<
|
||||
&mut dyn (FnMut(&RTSPSession, &RTSPSessionMedia) -> RTSPFilterResult),
|
||||
> = user_data as *const _ as usize
|
||||
let callback = user_data
|
||||
as *mut Option<
|
||||
&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(
|
||||
self.as_ref().to_glib_none().0,
|
||||
func,
|
||||
super_callback0 as *const _ as usize as *mut _,
|
||||
super_callback0 as *const _ as *mut _,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -75,9 +75,7 @@ pub trait RTSPSessionPoolExt: IsA<RTSPSessionPool> + sealed::Sealed + 'static {
|
|||
) -> ffi::GstRTSPFilterResult {
|
||||
let pool = from_glib_borrow(pool);
|
||||
let session = from_glib_borrow(session);
|
||||
let callback: *mut Option<
|
||||
&mut dyn (FnMut(&RTSPSessionPool, &RTSPSession) -> RTSPFilterResult),
|
||||
> = user_data as *const _ as usize
|
||||
let callback = user_data
|
||||
as *mut Option<
|
||||
&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(
|
||||
self.as_ref().to_glib_none().0,
|
||||
func,
|
||||
super_callback0 as *const _ as usize as *mut _,
|
||||
super_callback0 as *const _ as *mut _,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -889,9 +889,7 @@ pub trait RTSPStreamExt: IsA<RTSPStream> + sealed::Sealed + 'static {
|
|||
) -> ffi::GstRTSPFilterResult {
|
||||
let stream = from_glib_borrow(stream);
|
||||
let trans = from_glib_borrow(trans);
|
||||
let callback: *mut Option<
|
||||
&mut dyn (FnMut(&RTSPStream, &RTSPStreamTransport) -> RTSPFilterResult),
|
||||
> = user_data as *const _ as usize
|
||||
let callback = user_data
|
||||
as *mut Option<
|
||||
&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(
|
||||
self.as_ref().to_glib_none().0,
|
||||
func,
|
||||
super_callback0 as *const _ as usize as *mut _,
|
||||
super_callback0 as *const _ as *mut _,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -170,12 +170,12 @@ pub trait RTSPStreamTransportExt: IsA<RTSPStreamTransport> + sealed::Sealed + 's
|
|||
fn set_keepalive<P: Fn() + 'static>(&self, keep_alive: P) {
|
||||
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) {
|
||||
let callback: &P = &*(user_data as *mut _);
|
||||
let callback = &*(user_data as *mut P);
|
||||
(*callback)()
|
||||
}
|
||||
let keep_alive = Some(keep_alive_func::<P> as _);
|
||||
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 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) {
|
||||
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) {
|
||||
let callback: &P = &*(user_data as *mut _);
|
||||
let callback = &*(user_data as *mut P);
|
||||
(*callback)()
|
||||
}
|
||||
let message_sent = Some(message_sent_func::<P> as _);
|
||||
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 super_callback0: Box_<P> = message_sent_data;
|
||||
|
@ -229,14 +229,14 @@ pub trait RTSPStreamTransportExt: IsA<RTSPStreamTransport> + sealed::Sealed + 's
|
|||
user_data: glib::ffi::gpointer,
|
||||
) {
|
||||
let trans = from_glib_borrow(trans);
|
||||
let callback: &P = &*(user_data as *mut _);
|
||||
let callback = &*(user_data as *mut P);
|
||||
(*callback)(&trans)
|
||||
}
|
||||
let message_sent = Some(message_sent_func::<P> as _);
|
||||
unsafe extern "C" fn notify_func<P: Fn(&RTSPStreamTransport) + '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 super_callback0: Box_<P> = message_sent_data;
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -224,14 +224,14 @@ pub trait WebRTCICEExt: IsA<WebRTCICE> + sealed::Sealed + 'static {
|
|||
) {
|
||||
let ice = from_glib_borrow(ice);
|
||||
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())
|
||||
}
|
||||
let func = Some(func_func::<P> as _);
|
||||
unsafe extern "C" fn notify_func<P: Fn(&WebRTCICE, u32, &str) + Send + Sync + '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 super_callback0: Box_<P> = func_data;
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -135,7 +135,7 @@ pub trait ElementExt: IsA<Element> + sealed::Sealed + 'static {
|
|||
) -> glib::ffi::gboolean {
|
||||
let element = from_glib_borrow(element);
|
||||
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()
|
||||
}
|
||||
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(
|
||||
self.as_ref().to_glib_none().0,
|
||||
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 {
|
||||
let element = from_glib_borrow(element);
|
||||
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()
|
||||
}
|
||||
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(
|
||||
self.as_ref().to_glib_none().0,
|
||||
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 {
|
||||
let element = from_glib_borrow(element);
|
||||
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()
|
||||
}
|
||||
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(
|
||||
self.as_ref().to_glib_none().0,
|
||||
func,
|
||||
super_callback0 as *const _ as usize as *mut _,
|
||||
super_callback0 as *const _ as *mut _,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -122,7 +122,7 @@ pub trait PadExt: IsA<Pad> + sealed::Sealed + 'static {
|
|||
user_data: glib::ffi::gpointer,
|
||||
) -> glib::ffi::gboolean {
|
||||
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()
|
||||
}
|
||||
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(
|
||||
self.as_ref().to_glib_none().0,
|
||||
forward,
|
||||
super_callback0 as *const _ as usize as *mut _,
|
||||
super_callback0 as *const _ as *mut _,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
|
@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 62054dc7234d)
|
||||
|
|
Loading…
Reference in a new issue