Bus.addWatchFull

Adds a bus watch to the default main context with the given priority. This function is used to receive asynchronous messages in the main loop. 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. The watch can be removed using g_source_remove() or by returning FALSE from func.

class Bus
uint
addWatchFull

Parameters

priority int

The priority of the watch.

func GstBusFunc

A function to call when a message is received.

userData void*

user data passed to func.

notify GDestroyNotify

the function to call when the source is removed.

Return Value

Type: uint

The event source id. MT safe.

Meta