element: Annotate set_bus() bus parameter as allow-none

It's possible to replace the bus with NULL/None
This commit is contained in:
Sebastian Dröge 2017-12-20 18:09:28 +02:00
parent 5a01b35e80
commit 735eb25def

View file

@ -3145,7 +3145,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.