diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2015-07-13 14:24:34 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2015-07-13 14:25:42 +0100 |
commit | 3b6fa8e81a286db07669d0f432aa7df49ab58d67 (patch) | |
tree | 5eb579ed0cf8bce82b367fa2053bd81e2536d93f | |
parent | 3cea60dc6f2d7f8641107348c4a6576308e601cc (diff) |
docs: bus: mention main loop requirement in gst_bus_add_watch() docs
-rw-r--r-- | gst/gstbus.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/gstbus.c b/gst/gstbus.c index fbe24643f..993629023 100644 --- a/gst/gstbus.c +++ b/gst/gstbus.c @@ -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(). |