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

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2019-01-16 18:30:26 +0300
committerSebastian Dröge <sebastian@centricular.com>2019-01-16 18:30:26 +0300
commit873d17732232777ee64c38e738c68e5b0d308521 (patch)
tree5c020c1a410a04cb0246a261422d6f4e6146b456
parente1c32ecd614fc07ac6cc0f3effd03fcf38c4ce95 (diff)
threadshare: Update for GLib API changes
-rw-r--r--gst-plugin-threadshare/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-plugin-threadshare/src/lib.rs b/gst-plugin-threadshare/src/lib.rs
index 47d8e5746..0428977be 100644
--- a/gst-plugin-threadshare/src/lib.rs
+++ b/gst-plugin-threadshare/src/lib.rs
@@ -90,7 +90,7 @@ pub fn set_element_flags<T: glib::IsA<gst::Object> + glib::IsA<gst::Element>>(
use glib::translate::ToGlib;
use gst_ffi;
- let ptr: *mut gst_ffi::GstObject = element.to_glib_none().0;
+ let ptr: *mut gst_ffi::GstObject = element.as_ptr() as *mut _;
let _guard = MutexGuard::lock(&(*ptr).lock);
(*ptr).flags |= flags.to_glib();
}