Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sdroege/gst-plugin-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/video
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2022-10-07 21:07:48 +0300
committerSebastian Dröge <sebastian@centricular.com>2022-10-07 23:54:53 +0300
commit4c57a97d4d6057bdd1c4b58b256cd153d21d7d3f (patch)
treecd1d67946cd2293b0303493a8f1c419e5a425151 /video
parent0b13bfe9dc08024e2925f42e9c377faf61af1536 (diff)
Update for glib::Object::new() API changes
Diffstat (limited to 'video')
-rw-r--r--video/gtk4/src/sink/mod.rs2
-rw-r--r--video/gtk4/src/sink/paintable/mod.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/video/gtk4/src/sink/mod.rs b/video/gtk4/src/sink/mod.rs
index 0a35baa4..657c0528 100644
--- a/video/gtk4/src/sink/mod.rs
+++ b/video/gtk4/src/sink/mod.rs
@@ -35,7 +35,7 @@ glib::wrapper! {
impl PaintableSink {
pub fn new(name: Option<&str>) -> Self {
- glib::Object::new(&[("name", &name)]).expect("Failed to create a GTK4Sink")
+ glib::Object::new(&[("name", &name)])
}
fn pending_frame(&self) -> Option<Frame> {
diff --git a/video/gtk4/src/sink/paintable/mod.rs b/video/gtk4/src/sink/paintable/mod.rs
index 03b94883..da66360f 100644
--- a/video/gtk4/src/sink/paintable/mod.rs
+++ b/video/gtk4/src/sink/paintable/mod.rs
@@ -23,7 +23,7 @@ glib::wrapper! {
impl SinkPaintable {
pub fn new() -> Self {
- glib::Object::new(&[]).expect("Failed to create a SinkPaintable")
+ glib::Object::new(&[])
}
}