mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-23 00:26:31 +00:00
gstreamer-check/test_clock: Implement process_id manually
This commit is contained in:
parent
0aeccc27ff
commit
05852bb19f
1 changed files with 10 additions and 0 deletions
|
@ -37,6 +37,16 @@ impl TestClock {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
|
pub fn process_id(&self, pending_id: &gst::ClockId) -> bool {
|
||||||
|
unsafe {
|
||||||
|
from_glib(gst_check_sys::gst_test_clock_process_id(
|
||||||
|
self.to_glib_none().0,
|
||||||
|
pending_id.to_glib_none().0,
|
||||||
|
))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pub fn process_id_list(&self, pending_list: &[&gst::ClockId]) -> u32 {
|
pub fn process_id_list(&self, pending_list: &[&gst::ClockId]) -> u32 {
|
||||||
unsafe {
|
unsafe {
|
||||||
gst_check_sys::gst_test_clock_process_id_list(
|
gst_check_sys::gst_test_clock_process_id_list(
|
||||||
|
|
Loading…
Reference in a new issue