From d5317cccdd0ab4ea13a905a8f4ee4313282edfed Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Sun, 12 May 2019 11:59:59 +0200 Subject: [PATCH] gstreamer/pad: Expose the flow_ret value in PadProbeInfo This is present since GStreamer 1.5.90 so no feature flags needed. --- gstreamer/src/pad.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gstreamer/src/pad.rs b/gstreamer/src/pad.rs index 182b81403..a643245e8 100644 --- a/gstreamer/src/pad.rs +++ b/gstreamer/src/pad.rs @@ -90,6 +90,7 @@ pub struct PadProbeInfo<'a> { pub offset: u64, pub size: u32, pub data: Option>, + 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 }