diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2017-09-23 12:37:18 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2017-09-23 12:57:15 +0300 |
commit | 4ee8b12e66a1ec9898a8b961ccf5df507f05beff (patch) | |
tree | 5ba71a19f64550e994855616202268a4ffd17de2 /gst-plugin/src/base_src.rs | |
parent | 1c997c171d8ea1eb5c6afa548d6cb7899d4c73f3 (diff) |
Add infrastructure for installing various kinds of properties
From both the subclass and the implementation
Diffstat (limited to 'gst-plugin/src/base_src.rs')
-rw-r--r-- | gst-plugin/src/base_src.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gst-plugin/src/base_src.rs b/gst-plugin/src/base_src.rs index 1888964ae..752fc2202 100644 --- a/gst-plugin/src/base_src.rs +++ b/gst-plugin/src/base_src.rs @@ -25,7 +25,9 @@ use gst_base::prelude::*; use object::*; use element::*; -pub trait BaseSrcImpl: mopa::Any + ElementImpl + Send + Sync + 'static {} +pub trait BaseSrcImpl + : mopa::Any + ObjectImpl + ElementImpl + Send + Sync + 'static { +} mopafy!(BaseSrcImpl); @@ -56,6 +58,7 @@ unsafe impl BaseSrcClass<RsBaseSrc> for gst_base_ffi::GstBaseSrcClass {} unsafe impl BaseSrcClass<RsBaseSrc> for RsBaseSrcClass {} unsafe impl ElementClass<RsBaseSrc> for gst_base_ffi::GstBaseSrcClass {} unsafe impl ElementClass<RsBaseSrc> for RsBaseSrcClass {} +unsafe impl ObjectClassStruct for gst_base_ffi::GstBaseSrcClass {} // FIXME: Boilerplate impl BaseSrcImpl for Box<BaseSrcImpl> {} @@ -72,6 +75,8 @@ impl ElementImpl for Box<BaseSrcImpl> { } } +impl ObjectImpl for Box<BaseSrcImpl> {} + impl ObjectType for RsBaseSrc { const NAME: &'static str = "RsBaseSrc"; type GlibType = gst_base_ffi::GstBaseSrc; |