element: Annotate set_bus() bus parameter as allow-none
authorSebastian Dröge <sebastian@centricular.com>
Wed, 20 Dec 2017 16:09:28 +0000 (18:09 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 20 Dec 2017 16:09:28 +0000 (18:09 +0200)
It's possible to replace the bus with NULL/None

gst/gstelement.c

index 132dab1..d4b2bb3 100644 (file)
@@ -3354,7 +3354,7 @@ gst_element_set_bus_func (GstElement * element, GstBus * bus)
 /**
  * gst_element_set_bus:
  * @element: a #GstElement to set the bus of.
- * @bus: (transfer none): the #GstBus to set.
+ * @bus: (transfer none) (allow-none): the #GstBus to set.
  *
  * Sets the bus of the element. Increases the refcount on the bus.
  * For internal use only, unless you're testing elements.