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:
Jan Alexander Steffens (heftig) 2019-05-12 11:59:59 +02:00
parent 061683af7b
commit d5317cccdd
No known key found for this signature in database
GPG key ID: DE5E0C5F25941CA5

View file

@ -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
}