gtk4: Implement Default for PaintableSink

This commit is contained in:
Julian Sparber 2022-01-31 14:12:11 +01:00 committed by Sebastian Dröge
parent bbe0b068e5
commit e419c18a87

View file

@ -107,6 +107,12 @@ impl PaintableSink {
}
}
impl Default for PaintableSink {
fn default() -> Self {
PaintableSink::new(None)
}
}
pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
gst::Element::register(
Some(plugin),