bus: gst_bus_add_watch() can return 0 on error

Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=735195
This commit is contained in:
Linus Svensson 2014-07-15 16:06:49 +02:00 committed by Sebastian Dröge
parent 59c34a8ff7
commit b0fff643dc

View 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.
*/