After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 529017 - [0.11] Move indexing and clock capabilities from GstElement to a separate interface
[0.11] Move indexing and clock capabilities from GstElement to a separate int...
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal enhancement
: 0.11.x
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-04-20 11:18 UTC by Sebastian Dröge (slomo)
Modified: 2012-04-14 12:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastian Dröge (slomo) 2008-04-20 11:18:39 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);
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2011-02-21 08:16:26 UTC
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);
Comment 2 Wim Taymans 2011-11-10 17:55:21 UTC
(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.
Comment 3 Wim Taymans 2011-11-29 16:12:11 UTC
Implemented with element flags now in 0.11.
Comment 4 Tim-Philipp Müller 2012-04-14 12:07:55 UTC
This can be closed then I guess..