mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-02-19 20:36:25 +00:00
gstreamer: add PadProbeId::as_raw()
This allows to convert PadProbeId to numberic values without taking them by value (like `into_glib`). See https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/issues/382#note_1391236
This commit is contained in:
parent
c651d96c49
commit
a4ba8b87cd
1 changed files with 6 additions and 0 deletions
|
@ -47,6 +47,12 @@ impl FromGlib<libc::c_ulong> for PadProbeId {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl PadProbeId {
|
||||||
|
pub fn as_raw(&self) -> libc::c_ulong {
|
||||||
|
self.0.get() as libc::c_ulong
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[doc(alias = "GstPadProbeInfo")]
|
#[doc(alias = "GstPadProbeInfo")]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct PadProbeInfo<'a> {
|
pub struct PadProbeInfo<'a> {
|
||||||
|
|
Loading…
Reference in a new issue