Bus.timedPopFiltered

Gets a message from the bus whose type matches the message type mask types, waiting up to the specified timeout (and discarding any messages that do not match the mask provided).

If timeout is 0, this function behaves like gst.bus.Bus.popFiltered. If timeout is #GST_CLOCK_TIME_NONE, this function will block forever until a matching message was posted on the bus.

Parameters

timeout gst.types.ClockTime

a timeout in nanoseconds, or GST_CLOCK_TIME_NONE to wait forever

types gst.types.MessageType

message types to take into account, gst.types.MessageType.Any for any type

Return Value

Type: gst.message.Message

a #GstMessage matching the filter in types, or null if no matching message was found on the bus until the timeout expired.