GNOME Bugzilla – Bug 510693
Support for gstreamer plugins building
Last modified: 2008-05-23 20:30:39 UTC
In gstreamer there is need of adding certain functions and macros calls in for example _class_init or _get_type. If it would be possible it will be nice if the vala have such possibility (eigther via recognition of plugin or via possibility of overloading _get_type etc. methods).
PS. Priority should be changed to Low IMHO.
Confirming, depends on bug 506985 and bug 507136.
In get_type() you only need to add something if you implement interfaces IIRC. This should already be handled by vala, the class_init() and base_init() things are still valid though. For base_init() see bug #491501.
Well - for some reason's in examples the gst_register_type function or something like that is called instead of GObject equivalent
These must be old examples... at least current gstreamer has no gst_register_type anymore.
The most important class methods that we need are the gst_element_class_* ones from http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html Everything else _can_ wait a bit longer until gobject-introspection handles them ;)
Created attachment 110897 [details] sample gst element in Vala The attached tarball contains a sample gstreamer element, to build: ./waf configure ./waf export GST_PLUGIN_PATH=`pwd`/_build_/default/src gst-inspect valasink gst-launch videotestsrc ! valasink
2008-05-23 Jürg Billeter <j@bitron.ch> * vapi/packages/gstreamer-0.10/: Improve the GstBuffer binding, base class fixes in metadata, patch by Ali Sabil, fixes bug 510693 and bug 533011 * vapi/gstreamer-0.10.vapi: regenerated Fixed in r1413.