mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-26 13:31:00 +00:00
closedcaption/cea608overlay: Fix compilation with cairo API changes
This commit is contained in:
parent
e1ea71fec7
commit
3d24f1da22
1 changed files with 3 additions and 3 deletions
|
@ -199,12 +199,12 @@ impl Cea608Overlay {
|
|||
)
|
||||
.ok()?;
|
||||
|
||||
let cr = cairo::Context::new(&surface);
|
||||
let cr = cairo::Context::new(&surface).ok()?;
|
||||
|
||||
// Clear background
|
||||
cr.set_operator(cairo::Operator::Source);
|
||||
cr.set_source_rgba(0.0, 0.0, 0.0, 0.0);
|
||||
cr.paint();
|
||||
cr.paint().ok()?;
|
||||
|
||||
// Render text outline
|
||||
cr.save().ok()?;
|
||||
|
@ -213,7 +213,7 @@ impl Cea608Overlay {
|
|||
cr.set_source_rgba(0.0, 0.0, 0.0, 1.0);
|
||||
|
||||
pangocairo::functions::layout_path(&cr, &layout);
|
||||
cr.stroke();
|
||||
cr.stroke().ok()?;
|
||||
cr.restore().ok()?;
|
||||
|
||||
// Render text
|
||||
|
|
Loading…
Reference in a new issue