diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2020-10-20 12:49:51 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2020-10-20 12:49:51 +0300 |
commit | bbc18d6349aaaabd9ae43a08c3874718a929e12b (patch) | |
tree | ab9556f981018f6364d99f3a5995b1294839a749 /tutorial | |
parent | 9d394d39edadcd4c59053f524fa1be6dd4e6b75c (diff) |
Update for ClockId creation API changes
Diffstat (limited to 'tutorial')
-rw-r--r-- | tutorial/src/sinesrc.rs | 2 | ||||
-rw-r--r-- | tutorial/tutorial-2.md | 4 |
2 files changed, 3 insertions, 3 deletions
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); |