From 478606e44cf1b61d84c72f6a378ef910a66648c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 31 Jan 2023 10:50:21 +0200 Subject: [PATCH] Use `glib::Object::new()` instead of `new_default()` Part-of: --- examples/src/bin/rtsp-server-subclass.rs | 8 ++++---- gstreamer/src/bin.rs | 2 +- gstreamer/src/pipeline.rs | 2 +- gstreamer/src/subclass/allocator.rs | 2 +- gstreamer/src/subclass/buffer_pool.rs | 2 +- gstreamer/src/subclass/task_pool.rs | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/src/bin/rtsp-server-subclass.rs b/examples/src/bin/rtsp-server-subclass.rs index f54c72aa6..9accaedf0 100644 --- a/examples/src/bin/rtsp-server-subclass.rs +++ b/examples/src/bin/rtsp-server-subclass.rs @@ -154,7 +154,7 @@ mod media_factory { impl Default for Factory { // Creates a new instance of our factory fn default() -> Factory { - glib::Object::new_default() + glib::Object::new() } } } @@ -266,7 +266,7 @@ mod server { impl Default for Server { // Creates a new instance of our factory fn default() -> Server { - glib::Object::new_default() + glib::Object::new() } } } @@ -315,7 +315,7 @@ mod client { impl Default for Client { // Creates a new instance of our factory fn default() -> Client { - glib::Object::new_default() + glib::Object::new() } } } @@ -359,7 +359,7 @@ mod mount_points { impl Default for MountPoints { // Creates a new instance of our factory fn default() -> Self { - glib::Object::new_default() + glib::Object::new() } } } diff --git a/gstreamer/src/bin.rs b/gstreamer/src/bin.rs index 19858881a..d0a184731 100644 --- a/gstreamer/src/bin.rs +++ b/gstreamer/src/bin.rs @@ -223,7 +223,7 @@ impl> GstBinExtManual for O { impl Default for Bin { fn default() -> Self { - glib::object::Object::new_default() + glib::object::Object::new() } } diff --git a/gstreamer/src/pipeline.rs b/gstreamer/src/pipeline.rs index 5c0f88cf9..9622777d0 100644 --- a/gstreamer/src/pipeline.rs +++ b/gstreamer/src/pipeline.rs @@ -51,7 +51,7 @@ impl> GstPipelineExtManual for O { impl Default for Pipeline { fn default() -> Self { - glib::object::Object::new_default() + glib::object::Object::new() } } diff --git a/gstreamer/src/subclass/allocator.rs b/gstreamer/src/subclass/allocator.rs index 8623640c7..c24f77998 100644 --- a/gstreamer/src/subclass/allocator.rs +++ b/gstreamer/src/subclass/allocator.rs @@ -150,7 +150,7 @@ mod tests { impl Default for TestAllocator { fn default() -> Self { - glib::Object::new_default() + glib::Object::new() } } diff --git a/gstreamer/src/subclass/buffer_pool.rs b/gstreamer/src/subclass/buffer_pool.rs index 1a999f9dd..9cf58c92f 100644 --- a/gstreamer/src/subclass/buffer_pool.rs +++ b/gstreamer/src/subclass/buffer_pool.rs @@ -517,7 +517,7 @@ mod tests { impl Default for TestBufferPool { fn default() -> Self { - glib::Object::new_default() + glib::Object::new() } } diff --git a/gstreamer/src/subclass/task_pool.rs b/gstreamer/src/subclass/task_pool.rs index 04440e2a4..0f12946c5 100644 --- a/gstreamer/src/subclass/task_pool.rs +++ b/gstreamer/src/subclass/task_pool.rs @@ -306,7 +306,7 @@ mod tests { impl Default for TestPool { fn default() -> Self { - glib::Object::new_default() + glib::Object::new() } }