bus: gst_bus_add_watch() can return 0 on error
authorLinus Svensson <linusp.svensson@gmail.com>
Tue, 15 Jul 2014 14:06:49 +0000 (16:06 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 28 Aug 2014 07:10:37 +0000 (10:10 +0300)
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=735195

gst/gstbus.c

index 2550a28..9b64a7f 100644 (file)
@@ -902,7 +902,7 @@ gst_bus_add_watch_full_unlocked (GstBus * bus, gint priority,
  *
  * MT safe.
  *
- * Returns: The event source id.
+ * Returns: The event source id or 0 if @bus already got an event source.
  * Rename to: gst_bus_add_watch
  */
 guint
@@ -939,7 +939,7 @@ gst_bus_add_watch_full (GstBus * bus, gint priority,
  * The watch can be removed using g_source_remove() or by returning %FALSE
  * from @func.
  *
- * Returns: The event source id.
+ * Returns: The event source id or 0 if @bus already got an event source.
  *
  * MT safe.
  */