forked from mirrors/gstreamer-rs
regen: optional return type for TestClock::next_entry_type
This commit is contained in:
parent
8720c9c386
commit
99fb9423d2
1 changed files with 2 additions and 3 deletions
|
@ -55,12 +55,11 @@ impl TestClock {
|
||||||
|
|
||||||
#[doc(alias = "gst_test_clock_get_next_entry_time")]
|
#[doc(alias = "gst_test_clock_get_next_entry_time")]
|
||||||
#[doc(alias = "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 {
|
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,
|
self.to_glib_none().0,
|
||||||
))
|
))
|
||||||
.expect("mandatory glib value is None")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue