Gst.Bus.prototype.pop_filtered
function pop_filtered(types:Gst.MessageType):Gst.Message { // Gjs wrapper for gst_bus_pop_filtered() }
Get a message matching @type from the bus. Will discard all messages on the bus that do not match @type and that have been posted before the first message that does match @type. If there is no message matching @type on the bus, all messages will be discarded.
- types
message types to take into account
- Returns
the next Gst.Message matching @type that is on the bus, or NULL if the bus is empty or there is no message matching @type. The message is taken from the bus and needs to be unreffed with gst_message_unref() after usage. MT safe.