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 510693 - Support for gstreamer plugins building
Support for gstreamer plugins building
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Bindings
0.1.x
Other All
: Normal enhancement
: ---
Assigned To: Jürg Billeter
Vala maintainers
Depends on: 506985 507136
Blocks:
 
 
Reported: 2008-01-19 22:25 UTC by Maciej (Matthew) Piechotka
Modified: 2008-05-23 20:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sample gst element in Vala (99.07 KB, application/x-compressed-tar)
2008-05-14 11:46 UTC, Ali Sabil
Details

Description Maciej (Matthew) Piechotka 2008-01-19 22:25:01 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).
Comment 1 Maciej (Matthew) Piechotka 2008-01-19 22:25:54 UTC
PS.
Priority should be changed to Low IMHO.
Comment 2 Jürg Billeter 2008-01-21 09:28:07 UTC
Confirming, depends on bug 506985 and bug 507136.
Comment 3 Sebastian Dröge (slomo) 2008-01-21 09:34:36 UTC
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.
Comment 4 Maciej (Matthew) Piechotka 2008-01-21 21:34:21 UTC
Well - for some reason's in examples the gst_register_type function or something like that is called instead of GObject equivalent
Comment 5 Sebastian Dröge (slomo) 2008-01-22 13:22:48 UTC
These must be old examples... at least current gstreamer has no gst_register_type anymore.
Comment 6 Sebastian Dröge (slomo) 2008-04-25 10:20:02 UTC
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 ;)
Comment 7 Ali Sabil 2008-05-14 11:46:29 UTC
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
Comment 8 Jürg Billeter 2008-05-23 20:30:39 UTC
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.