mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 02:51:10 +00:00
examples: Fix compilation after pangocairo API changes
This commit is contained in:
parent
6f51444c1f
commit
4bdbe0022b
2 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ fn create_pipeline() -> Result<gst::Pipeline, Error> {
|
||||||
src.set_property_from_str("pattern", "ball");
|
src.set_property_from_str("pattern", "ball");
|
||||||
|
|
||||||
// The PangoFontMap represents the set of fonts available for a particular rendering system.
|
// 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.
|
// Create a new pango layouting context for the fontmap.
|
||||||
let context = fontmap.create_context().unwrap();
|
let context = fontmap.create_context().unwrap();
|
||||||
// Create a pango layout object. This object is a string of text we want to layout.
|
// Create a pango layout object. This object is a string of text we want to layout.
|
||||||
|
|
|
@ -88,7 +88,7 @@ fn create_pipeline() -> Result<gst::Pipeline, Error> {
|
||||||
src.set_property_from_str("pattern", "ball");
|
src.set_property_from_str("pattern", "ball");
|
||||||
|
|
||||||
// The PangoFontMap represents the set of fonts available for a particular rendering system.
|
// 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.
|
// Create a new pango layouting context for the fontmap.
|
||||||
let context = fontmap.create_context().unwrap();
|
let context = fontmap.create_context().unwrap();
|
||||||
// Create a pango layout object. This object is a string of text we want to layout.
|
// Create a pango layout object. This object is a string of text we want to layout.
|
||||||
|
|
Loading…
Reference in a new issue