From bbc18d6349aaaabd9ae43a08c3874718a929e12b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 20 Oct 2020 12:49:51 +0300 Subject: Update for ClockId creation API changes --- tutorial/src/sinesrc.rs | 2 +- tutorial/tutorial-2.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tutorial') diff --git a/tutorial/src/sinesrc.rs b/tutorial/src/sinesrc.rs index 7dbd9bb24..ff2e5aff5 100644 --- a/tutorial/src/sinesrc.rs +++ b/tutorial/src/sinesrc.rs @@ -802,7 +802,7 @@ impl PushSrcImpl for SineSrc { return Err(gst::FlowError::Flushing); } - let id = clock.new_single_shot_id(wait_until).unwrap(); + let id = clock.new_single_shot_id(wait_until); clock_wait.clock_id = Some(id.clone()); drop(clock_wait); diff --git a/tutorial/tutorial-2.md b/tutorial/tutorial-2.md index 7087fde98..aa6b512dd 100644 --- a/tutorial/tutorial-2.md +++ b/tutorial/tutorial-2.md @@ -705,7 +705,7 @@ For working in live mode, we have to add a few different parts in various places return Ok(buffer); } - let id = clock.new_single_shot_id(wait_until).unwrap(); + let id = clock.new_single_shot_id(wait_until); gst_log!( CAT, @@ -863,7 +863,7 @@ Now as a last step, we need to actually make use of the new struct we added arou return Err(gst::FlowReturn::Flushing); } - let id = clock.new_single_shot_id(wait_until).unwrap(); + let id = clock.new_single_shot_id(wait_until); clock_wait.clock_id = Some(id.clone()); drop(clock_wait); -- cgit v1.2.3