mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-01-09 16:55:27 +00:00
app: Don't statically declare that appsrc/appsink inherit from basesrc/basesink
Otherwise the API of the base classes will be directly available and can cause confusion (e.g. gst_base_src_set_format() vs. the "format" property). All base class API should be considered "protected" from an application point of view and only be called by the subclass itself. See https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues/872
This commit is contained in:
parent
b5d5838d96
commit
06e0555555
3 changed files with 2 additions and 5 deletions
|
@ -13,7 +13,6 @@ external_libraries = [
|
||||||
"GLib",
|
"GLib",
|
||||||
"GObject",
|
"GObject",
|
||||||
"Gst",
|
"Gst",
|
||||||
"GstBase",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
generate = [
|
generate = [
|
||||||
|
@ -27,8 +26,6 @@ manual = [
|
||||||
"Gst.URIHandler",
|
"Gst.URIHandler",
|
||||||
"Gst.FlowReturn",
|
"Gst.FlowReturn",
|
||||||
"Gst.Format",
|
"Gst.Format",
|
||||||
"GstBase.BaseSrc",
|
|
||||||
"GstBase.BaseSink",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[object]]
|
[[object]]
|
||||||
|
|
|
@ -11,7 +11,7 @@ use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::wrapper! {
|
glib::wrapper! {
|
||||||
pub struct AppSink(Object<ffi::GstAppSink, ffi::GstAppSinkClass>) @extends gst_base::BaseSink, gst::Element, gst::Object, @implements gst::URIHandler;
|
pub struct AppSink(Object<ffi::GstAppSink, ffi::GstAppSinkClass>) @extends gst::Element, gst::Object, @implements gst::URIHandler;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
get_type => || ffi::gst_app_sink_get_type(),
|
get_type => || ffi::gst_app_sink_get_type(),
|
||||||
|
|
|
@ -12,7 +12,7 @@ use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::wrapper! {
|
glib::wrapper! {
|
||||||
pub struct AppSrc(Object<ffi::GstAppSrc, ffi::GstAppSrcClass>) @extends gst_base::BaseSrc, gst::Element, gst::Object, @implements gst::URIHandler;
|
pub struct AppSrc(Object<ffi::GstAppSrc, ffi::GstAppSrcClass>) @extends gst::Element, gst::Object, @implements gst::URIHandler;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
get_type => || ffi::gst_app_src_get_type(),
|
get_type => || ffi::gst_app_src_get_type(),
|
||||||
|
|
Loading…
Reference in a new issue