[Bug 735195] bus: Missing API to remove a bus watch
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Thu Aug 21 15:01:31 PDT 2014
https://bugzilla.gnome.org/show_bug.cgi?id=735195
GStreamer | gstreamer (core) | git
Olivier Crete (Tester) <olivier.crete> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |olivier.crete at ocrete.ca
Resolution| |NOTABUG
--- Comment #1 from Olivier Crete (Tester) <olivier.crete at ocrete.ca> 2014-08-21 22:01:23 UTC ---
gst_bus_add_watch() only adds the watch to the default main context, so you
remove it with g_source_remove().
If you want to add a watch to non-default main context, you need to create it
with gst_bus_create_watch(), then attach it with g_source_attach(). If you want
to remove it, you use g_source_destroy(). And then to not leak it, you unref it
with g_source_unref() as you were given a new reference by
gst_bus_create_watch().
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list