mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
docs: bus: mention main loop requirement in gst_bus_add_watch() docs
This commit is contained in:
parent
3cea60dc6f
commit
3b6fa8e81a
1 changed files with 4 additions and 0 deletions
|
@ -911,6 +911,8 @@ gst_bus_add_watch_full_unlocked (GstBus * bus, gint priority,
|
|||
* There can only be a single bus watch per bus, you must remove it before you
|
||||
* can set a new one.
|
||||
*
|
||||
* The bus watch will only work if a GLib main loop is being run.
|
||||
*
|
||||
* When @func is called, the message belongs to the caller; if you want to
|
||||
* keep a copy of it, call gst_message_ref() before leaving @func.
|
||||
*
|
||||
|
@ -953,6 +955,8 @@ gst_bus_add_watch_full (GstBus * bus, gint priority,
|
|||
* There can only be a single bus watch per bus, you must remove it before you
|
||||
* can set a new one.
|
||||
*
|
||||
* The bus watch will only work if a GLib main loop is being run.
|
||||
*
|
||||
* The watch can be removed using gst_bus_remove_watch() or by returning %FALSE
|
||||
* from @func. If the watch was added to the default main context it is also
|
||||
* possible to remove the watch using g_source_remove().
|
||||
|
|
Loading…
Reference in a new issue