regen: optional return type for TestClock::next_entry_type

This commit is contained in:
François Laignel 2022-07-15 13:26:34 +02:00
parent 8720c9c386
commit 99fb9423d2

View file

@ -55,12 +55,11 @@ impl TestClock {
#[doc(alias = "gst_test_clock_get_next_entry_time")]
#[doc(alias = "get_next_entry_time")]
pub fn next_entry_time(&self) -> gst::ClockTime {
pub fn next_entry_time(&self) -> Option<gst::ClockTime> {
unsafe {
try_from_glib(ffi::gst_test_clock_get_next_entry_time(
from_glib(ffi::gst_test_clock_get_next_entry_time(
self.to_glib_none().0,
))
.expect("mandatory glib value is None")
}
}