GNOME Bugzilla – Bug 627438
gst: Add a gst_is_initialized() API
Last modified: 2010-08-20 17:36:01 UTC
Simple API to check if GStreamer has been initialised. I need it to check that applications have initialised GStreamer before calling gupnp-dlna API. I figure this is something that others might find useful too.
Created attachment 168334 [details] [review] gst: Add a gst_is_initialized() API For one, this will allow libraries that expect applications to initialize GStreamer before using their API to have a check for this condition.
Can't you call gst_init() multiple times and if gst is already initialized it does nothing?
That doesn't mean that this function isn't a good idea. If nobody has any reason not to have it during the day I'll push this change.
(In reply to comment #2) > Can't you call gst_init() multiple times and if gst is already initialized it > does nothing? Or gst_init_check()? ;)
Pushed with some minor changes (added a Since: to the docs and added the new symbol to the defs file) commit 904c1a7a1d13c0ad92d2d76e0c948b50acf1a358 Author: Arun Raghavan <arun.raghavan@collabora.co.uk> Date: Fri Aug 20 03:07:58 2010 +0530 gst: Add a gst_is_initialized() API For one, this will allow libraries that expect applications to initialize GStreamer before using their API to have a check for this condition. https://bugzilla.gnome.org/show_bug.cgi?id=627438