Commit d5317ccc authored by Jan Alexander Steffens's avatar Jan Alexander Steffens

gstreamer/pad: Expose the flow_ret value in PadProbeInfo

This is present since GStreamer 1.5.90 so no feature flags needed.
parent 061683af
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment