Changing properties of Base classes

mariannasb mariannasb at yahoo.com.br
Fri Oct 21 10:13:25 UTC 2016


Hi,

I have created a Sink element which uses VideoSink as the Base class.

In my sink class I want to disable rendering the preroll frame.

I know I can do g_object_set(G_OBJECT(mysink), "show-preroll-frame", FALSE;
NULL) inside my element init() function for example.
But if I then call gst-inspect it will still show show-preroll-frame
default=TRUE

Is there a way for me to overwrite the default value so that it is reflected
in gst-inspect?

And I would also like if possible to change it to a read-only property,
because I never want to render the preroll frame in this kind of sink.

I have found something about calling g_object_class_install_property() in a
derived class using the same property name as the one in the base class in
order to overwrite the property.
But I don't really have access to the PROP_MAX_LATENESS enum value from my
class in order to do that.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Changing-properties-of-Base-classes-tp4680156.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list