GNOME Bugzilla – Bug 645661
autovideosink's parent class is Bin?
Last modified: 2011-03-25 20:33:30 UTC
currently autovideosink class hierarchy is this: GObject +----GstObject +----GstElement +----GstBin +----GstAutoVideoSink how it's related to Bin? why it's not something like similar to xvimagesink eg: GObject +----GstObject +----GstElement +----GstBaseSink +----GstVideoSink +----GstAutoVideoSink this cause a lots of headacke for me to find this problem while implementing gstreamer-java...
Because it's implemented as a GstBin. It's a bin that automatically creates some videosink and adds it as child. This shouldn't be causing problems anywhere, you can't expect any sink to inherit from GstBaseSink (you can implement sinks that only inherit from GstElement just fine for example).
ok. then how can i get the selected real sink element from autovideosink? thanks.
With the GstBin API, e.g. gst_bin_iterate_elements() or gst_bin_get_by_name(). Or you could connect to the element-added signal to be notified when an element is added to the bin