Commit 30b95271 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Implement ::copy() directly on miniobject wrapper types

This provides the additional wrapping as the one via get via deref will
only give back a GstRc<T> without the additional wrapping.
parent 8f71a81c
......@@ -515,6 +515,10 @@ macro_rules! gst_define_mini_object_wrapper(
pub unsafe fn into_ptr(self) -> *mut $ffi_name {
pub fn copy(&self) -> Self {
impl From<$crate::GstRc<$ref_name>> for $name {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment