forked from mirrors/gstreamer-rs
examples/overlaycomposition: Fix compilation with cairo API changes
This commit is contained in:
parent
9c86aa9f76
commit
b05b2b3aaa
1 changed files with 2 additions and 2 deletions
|
@ -181,11 +181,11 @@ fn create_pipeline() -> Result<gst::Pipeline, Error> {
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
let cr = cairo::Context::new(&surface);
|
let cr = cairo::Context::new(&surface).expect("Failed to create cairo context");
|
||||||
|
|
||||||
cr.save().expect("Failed to save state");
|
cr.save().expect("Failed to save state");
|
||||||
cr.set_operator(cairo::Operator::Clear);
|
cr.set_operator(cairo::Operator::Clear);
|
||||||
cr.paint();
|
cr.paint().expect("Failed to clear background");
|
||||||
cr.restore().expect("Failed to restore state");
|
cr.restore().expect("Failed to restore state");
|
||||||
|
|
||||||
// The image we draw (the text) will be static, but we will change the
|
// The image we draw (the text) will be static, but we will change the
|
||||||
|
|
Loading…
Reference in a new issue