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 627438 - gst: Add a gst_is_initialized() API
gst: Add a gst_is_initialized() API
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
unspecified
Other All
: Normal normal
: 0.10.31
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-08-19 21:42 UTC by Arun Raghavan
Modified: 2010-08-20 17:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gst: Add a gst_is_initialized() API (1.83 KB, patch)
2010-08-19 21:42 UTC, Arun Raghavan
committed Details | Review

Description Arun Raghavan 2010-08-19 21:42:54 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.
Comment 1 Arun Raghavan 2010-08-19 21:42:59 UTC
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.
Comment 2 Sebastian Dröge (slomo) 2010-08-20 05:47:54 UTC
Can't you call gst_init() multiple times and if gst is already initialized it does nothing?
Comment 3 Sebastian Dröge (slomo) 2010-08-20 05:57:38 UTC
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.
Comment 4 Philippe Normand 2010-08-20 06:17:01 UTC
(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()? ;)
Comment 5 Sebastian Dröge (slomo) 2010-08-20 17:35:48 UTC
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