forked from mirrors/gstreamer-rs
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")]
|
||||
#[derive(Debug)]
|
||||
pub struct PadProbeInfo<'a> {
|
||||
|
|
Loading…
Reference in a new issue