From bf63a823cd59da6512d291de54474edba94535b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 30 Jul 2018 12:24:12 +0300 Subject: [PATCH] Use from_glib_borrow() for more vfunc parameters --- gst-plugin/src/base_src.rs | 2 +- gst-plugin/src/bin.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gst-plugin/src/base_src.rs b/gst-plugin/src/base_src.rs index 3f322925..3233c2e8 100644 --- a/gst-plugin/src/base_src.rs +++ b/gst-plugin/src/base_src.rs @@ -548,7 +548,7 @@ where let imp = element.get_impl(); panic_to_error!(&wrap, &element.panicked(), false, { - imp.event(&wrap, &from_glib_none(event_ptr)) + imp.event(&wrap, &from_glib_borrow(event_ptr)) }).to_glib() } diff --git a/gst-plugin/src/bin.rs b/gst-plugin/src/bin.rs index 91e9b4ff..f6ddddcd 100644 --- a/gst-plugin/src/bin.rs +++ b/gst-plugin/src/bin.rs @@ -172,7 +172,7 @@ where let imp = bin.get_impl(); panic_to_error!(&wrap, &bin.panicked(), false, { - imp.add_element(&wrap, &from_glib_none(element)) + imp.add_element(&wrap, &from_glib_borrow(element)) }).to_glib() } @@ -190,7 +190,7 @@ where let imp = bin.get_impl(); panic_to_error!(&wrap, &bin.panicked(), false, { - imp.remove_element(&wrap, &from_glib_none(element)) + imp.remove_element(&wrap, &from_glib_borrow(element)) }).to_glib() }