mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-23 08:36:31 +00:00
gstreamer/pad: Expose the flow_ret value in PadProbeInfo
This is present since GStreamer 1.5.90 so no feature flags needed.
This commit is contained in:
parent
061683af7b
commit
d5317cccdd
1 changed files with 4 additions and 0 deletions
|
@ -90,6 +90,7 @@ pub struct PadProbeInfo<'a> {
|
|||
pub offset: u64,
|
||||
pub size: u32,
|
||||
pub data: Option<PadProbeData<'a>>,
|
||||
pub flow_ret: FlowReturn,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
@ -1076,6 +1077,7 @@ where
|
|||
Some(PadProbeData::__Unknown(data))
|
||||
}
|
||||
},
|
||||
flow_ret: from_glib((*info).ABI.abi.flow_ret),
|
||||
};
|
||||
|
||||
let ret = func(&Pad::from_glib_borrow(pad).unsafe_cast(), &mut probe_info).to_glib();
|
||||
|
@ -1106,6 +1108,8 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
(*info).ABI.abi.flow_ret = probe_info.flow_ret.to_glib();
|
||||
|
||||
ret
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue