examples: Fix compilation after pangocairo API changes

This commit is contained in:
Sebastian Dröge 2022-10-14 18:11:42 +03:00
parent 6f51444c1f
commit 4bdbe0022b
2 changed files with 2 additions and 2 deletions

View file

@ -87,7 +87,7 @@ fn create_pipeline() -> Result<gst::Pipeline, Error> {
src.set_property_from_str("pattern", "ball");
// The PangoFontMap represents the set of fonts available for a particular rendering system.
let fontmap = pangocairo::FontMap::new().unwrap();
let fontmap = pangocairo::FontMap::new();
// Create a new pango layouting context for the fontmap.
let context = fontmap.create_context().unwrap();
// Create a pango layout object. This object is a string of text we want to layout.

View file

@ -88,7 +88,7 @@ fn create_pipeline() -> Result<gst::Pipeline, Error> {
src.set_property_from_str("pattern", "ball");
// The PangoFontMap represents the set of fonts available for a particular rendering system.
let fontmap = pangocairo::FontMap::new().unwrap();
let fontmap = pangocairo::FontMap::new();
// Create a new pango layouting context for the fontmap.
let context = fontmap.create_context().unwrap();
// Create a pango layout object. This object is a string of text we want to layout.