timed_pop_filtered


Description:

public Message? timed_pop_filtered (ClockTime timeout, MessageType types)

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 pop_filtered. If timeout is CLOCK_TIME_NONE, this function will block forever until a matching message was posted on the bus.

Parameters:

this

a Bus to pop from

timeout

a timeout in nanoseconds, or gst_clock_time_none to wait forever

types

message types to take into account, gst_message_any for any type

Returns:

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