mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 09:31:06 +00:00
Fix GES example
Some constructors are returning None now based on the annotations
This commit is contained in:
parent
49c5fa33ba
commit
d8085a5d79
1 changed files with 2 additions and 2 deletions
|
@ -64,11 +64,11 @@ fn main_loop(uri: &str) -> Result<(), glib::BoolError> {
|
|||
pipeline.set_timeline(&timeline);
|
||||
|
||||
// Load a clip from the given uri and add it to the layer.
|
||||
let clip = ges::UriClip::new(uri);
|
||||
let clip = ges::UriClip::new(uri).expect("Failed to create clip");
|
||||
layer.add_clip(&clip);
|
||||
|
||||
// Add an effect to the clip's video stream.
|
||||
let effect = ges::Effect::new("agingtv");
|
||||
let effect = ges::Effect::new("agingtv").expect("Failed to create effect");
|
||||
clip.add(&effect).unwrap();
|
||||
|
||||
println!(
|
||||
|
|
Loading…
Reference in a new issue