forked from mirrors/gstreamer-rs
Always derive Clone for miniobject wrappers
This commit is contained in:
parent
0b58bf5c2f
commit
26ee546d1a
1 changed files with 1 additions and 0 deletions
|
@ -493,6 +493,7 @@ impl<T: MiniObject + 'static> GlibPtrDefault for GstRc<T> {
|
||||||
macro_rules! gst_define_mini_object_wrapper(
|
macro_rules! gst_define_mini_object_wrapper(
|
||||||
($name:ident, $ref_name:ident, $ffi_name:path, [$($derives:ident,)*], $get_type:expr) => {
|
($name:ident, $ref_name:ident, $ffi_name:path, [$($derives:ident,)*], $get_type:expr) => {
|
||||||
#[derive($($derives,)*)]
|
#[derive($($derives,)*)]
|
||||||
|
#[derive(Clone)]
|
||||||
pub struct $name($crate::GstRc<$ref_name>);
|
pub struct $name($crate::GstRc<$ref_name>);
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
|
|
Loading…
Reference in a new issue