forked from mirrors/gstreamer-rs
Regenerate with latest gir
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1214>
This commit is contained in:
parent
c2dd69dfac
commit
9155d6eb7b
63 changed files with 126 additions and 131 deletions
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -227,7 +227,7 @@ impl<O: IsA<MetaContainer>> MetaContainerExt for O {
|
|||
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;
|
||||
(*callback)(&container, key.as_str(), &value);
|
||||
(*callback)(&container, key.as_str(), &value)
|
||||
}
|
||||
let func = Some(func_func::<P> as _);
|
||||
let super_callback0: &P = &func_data;
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -84,8 +84,7 @@ impl<O: IsA<GLFilter>> GLFilterExt for O {
|
|||
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 res = (*callback)(&filter, &in_tex);
|
||||
res.into_glib()
|
||||
(*callback)(&filter, &in_tex).into_glib()
|
||||
}
|
||||
let func = Some(func_func::<P> as _);
|
||||
let super_callback0: &P = &func_data;
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -401,12 +401,12 @@ impl<O: IsA<RTSPClient>> RTSPClientExt for O {
|
|||
&mut dyn (FnMut(&RTSPClient, &RTSPSession) -> RTSPFilterResult),
|
||||
> = user_data as *const _ as usize
|
||||
as *mut Option<&mut dyn (FnMut(&RTSPClient, &RTSPSession) -> RTSPFilterResult)>;
|
||||
let res = if let Some(ref mut callback) = *callback {
|
||||
if let Some(ref mut callback) = *callback {
|
||||
callback(&client, &sess)
|
||||
} else {
|
||||
panic!("cannot get closure...")
|
||||
};
|
||||
res.into_glib()
|
||||
}
|
||||
.into_glib()
|
||||
}
|
||||
let func = if func_data.is_some() {
|
||||
Some(func_func as _)
|
||||
|
|
|
@ -219,12 +219,12 @@ impl<O: IsA<RTSPServer>> RTSPServerExt for O {
|
|||
&mut dyn (FnMut(&RTSPServer, &RTSPClient) -> RTSPFilterResult),
|
||||
> = user_data as *const _ as usize
|
||||
as *mut Option<&mut dyn (FnMut(&RTSPServer, &RTSPClient) -> RTSPFilterResult)>;
|
||||
let res = if let Some(ref mut callback) = *callback {
|
||||
if let Some(ref mut callback) = *callback {
|
||||
callback(&server, &client)
|
||||
} else {
|
||||
panic!("cannot get closure...")
|
||||
};
|
||||
res.into_glib()
|
||||
}
|
||||
.into_glib()
|
||||
}
|
||||
let func = if func_data.is_some() {
|
||||
Some(func_func as _)
|
||||
|
|
|
@ -138,12 +138,12 @@ impl<O: IsA<RTSPSession>> RTSPSessionExt for O {
|
|||
as *mut Option<
|
||||
&mut dyn (FnMut(&RTSPSession, &RTSPSessionMedia) -> RTSPFilterResult),
|
||||
>;
|
||||
let res = if let Some(ref mut callback) = *callback {
|
||||
if let Some(ref mut callback) = *callback {
|
||||
callback(&sess, &media)
|
||||
} else {
|
||||
panic!("cannot get closure...")
|
||||
};
|
||||
res.into_glib()
|
||||
}
|
||||
.into_glib()
|
||||
}
|
||||
let func = if func_data.is_some() {
|
||||
Some(func_func as _)
|
||||
|
|
|
@ -116,12 +116,12 @@ impl<O: IsA<RTSPSessionPool>> RTSPSessionPoolExt for O {
|
|||
as *mut Option<
|
||||
&mut dyn (FnMut(&RTSPSessionPool, &RTSPSession) -> RTSPFilterResult),
|
||||
>;
|
||||
let res = if let Some(ref mut callback) = *callback {
|
||||
if let Some(ref mut callback) = *callback {
|
||||
callback(&pool, &session)
|
||||
} else {
|
||||
panic!("cannot get closure...")
|
||||
};
|
||||
res.into_glib()
|
||||
}
|
||||
.into_glib()
|
||||
}
|
||||
let func = if func_data.is_some() {
|
||||
Some(func_func as _)
|
||||
|
|
|
@ -1174,12 +1174,12 @@ impl<O: IsA<RTSPStream>> RTSPStreamExt for O {
|
|||
as *mut Option<
|
||||
&mut dyn (FnMut(&RTSPStream, &RTSPStreamTransport) -> RTSPFilterResult),
|
||||
>;
|
||||
let res = if let Some(ref mut callback) = *callback {
|
||||
if let Some(ref mut callback) = *callback {
|
||||
callback(&stream, &trans)
|
||||
} else {
|
||||
panic!("cannot get closure...")
|
||||
};
|
||||
res.into_glib()
|
||||
}
|
||||
.into_glib()
|
||||
}
|
||||
let func = if func_data.is_some() {
|
||||
Some(func_func as _)
|
||||
|
|
|
@ -230,7 +230,7 @@ impl<O: IsA<RTSPStreamTransport>> RTSPStreamTransportExt for O {
|
|||
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 _);
|
||||
(*callback)();
|
||||
(*callback)()
|
||||
}
|
||||
let keep_alive = Some(keep_alive_func::<P> as _);
|
||||
unsafe extern "C" fn notify_func<P: Fn() + 'static>(data: glib::ffi::gpointer) {
|
||||
|
@ -258,7 +258,7 @@ impl<O: IsA<RTSPStreamTransport>> RTSPStreamTransportExt for O {
|
|||
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 _);
|
||||
(*callback)();
|
||||
(*callback)()
|
||||
}
|
||||
let message_sent = Some(message_sent_func::<P> as _);
|
||||
unsafe extern "C" fn notify_func<P: Fn() + 'static>(data: glib::ffi::gpointer) {
|
||||
|
@ -286,7 +286,7 @@ impl<O: IsA<RTSPStreamTransport>> RTSPStreamTransportExt for O {
|
|||
) {
|
||||
let trans = from_glib_borrow(trans);
|
||||
let callback: &P = &*(user_data as *mut _);
|
||||
(*callback)(&trans);
|
||||
(*callback)(&trans)
|
||||
}
|
||||
let message_sent = Some(message_sent_func::<P> as _);
|
||||
unsafe extern "C" fn notify_func<P: Fn(&RTSPStreamTransport) + 'static>(
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
||||
// DO NOT EDIT
|
||||
|
||||
use glib::prelude::*;
|
||||
use glib::translate::*;
|
||||
|
||||
glib::wrapper! {
|
||||
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
|
|
|
@ -341,7 +341,7 @@ impl<O: IsA<WebRTCICE>> WebRTCICEExt for O {
|
|||
let ice = from_glib_borrow(ice);
|
||||
let candidate: Borrowed<glib::GString> = from_glib_borrow(candidate);
|
||||
let callback: &P = &*(user_data as *mut _);
|
||||
(*callback)(&ice, stream_id, candidate.as_str());
|
||||
(*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>(
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
||||
// DO NOT EDIT
|
||||
|
||||
use glib::{prelude::*, translate::*};
|
||||
use glib::translate::*;
|
||||
|
||||
glib::wrapper! {
|
||||
#[derive()]
|
||||
|
|
|
@ -264,8 +264,7 @@ impl<O: IsA<Element>> ElementExt for O {
|
|||
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 res = (*callback)(&element, &pad);
|
||||
res.into_glib()
|
||||
(*callback)(&element, &pad).into_glib()
|
||||
}
|
||||
let func = Some(func_func::<P> as _);
|
||||
let super_callback0: &P = &func_data;
|
||||
|
@ -288,8 +287,7 @@ impl<O: IsA<Element>> ElementExt for O {
|
|||
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 res = (*callback)(&element, &pad);
|
||||
res.into_glib()
|
||||
(*callback)(&element, &pad).into_glib()
|
||||
}
|
||||
let func = Some(func_func::<P> as _);
|
||||
let super_callback0: &P = &func_data;
|
||||
|
@ -312,8 +310,7 @@ impl<O: IsA<Element>> ElementExt for O {
|
|||
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 res = (*callback)(&element, &pad);
|
||||
res.into_glib()
|
||||
(*callback)(&element, &pad).into_glib()
|
||||
}
|
||||
let func = Some(func_func::<P> as _);
|
||||
let super_callback0: &P = &func_data;
|
||||
|
|
|
@ -306,8 +306,7 @@ impl<O: IsA<Pad>> PadExt for O {
|
|||
) -> glib::ffi::gboolean {
|
||||
let pad = from_glib_borrow(pad);
|
||||
let callback: *mut P = user_data as *const _ as usize as *mut P;
|
||||
let res = (*callback)(&pad);
|
||||
res.into_glib()
|
||||
(*callback)(&pad).into_glib()
|
||||
}
|
||||
let forward = Some(forward_func::<P> as _);
|
||||
let super_callback0: &P = &forward_data;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// DO NOT EDIT
|
||||
|
||||
use crate::{Object, PluginDependencyFlags, Structure};
|
||||
use glib::{prelude::*, translate::*};
|
||||
use glib::translate::*;
|
||||
use std::{fmt, ptr};
|
||||
|
||||
glib::wrapper! {
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ 047f55810b96)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 5eb11fc69910)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ ae0d1447f520)
|
||||
|
|
Loading…
Reference in a new issue