GNOME Bugzilla – Bug 529017
[0.11] Move indexing and clock capabilities from GstElement to a separate interface
Last modified: 2012-04-14 12:07:55 UTC
Hi, it would be nice if we could move the indexing and clock capabilities from GstElement to a separate interface as most GstElement subclasses don't provide that stuff anyway. This would affect the following functions: gboolean gst_element_requires_clock (GstElement *element); gboolean gst_element_set_clock (GstElement *element, GstClock *clock); GstClock* gst_element_get_clock (GstElement *element); gboolean gst_element_provides_clock (GstElement *element); GstClock* gst_element_provide_clock (GstElement *element); void gst_element_set_index (GstElement *element, GstIndex *index); GstIndex* gst_element_get_index (GstElement *element); gboolean gst_element_is_indexable (GstElement *element);
Ack. This way we can also scrap some methods: gst_element_is_indexable() -> GST_IS_INDEX(element); gst_element_provides_clock() -> GST_IS_CLOCK_PROVIDER(element);
(In reply to comment #1) > Ack. This way we can also scrap some methods: > gst_element_is_indexable() -> GST_IS_INDEX(element); > gst_element_provides_clock() -> GST_IS_CLOCK_PROVIDER(element); this won't work, for bins it is dynamic depending on the elements inside.
Implemented with element flags now in 0.11.
This can be closed then I guess..