Poll.wait

Wait for activity on the file descriptors in set. This function waits up to the specified timeout. A timeout of GST_CLOCK_TIME_NONE waits forever.

For gstreamer.Poll objects created with Poll.new, this function can only be called from a single thread at a time. If called from multiple threads, -1 will be returned with errno set to EPERM.

This is not true for timer gstreamer.Poll objects created with Poll.newTimer, where it is allowed to have multiple threads waiting simultaneously.

class Poll
int
wait

Parameters

timeout GstClockTime

a timeout in nanoseconds.

Return Value

Type: int

The number of gstreamer.PollFD in set that have activity or 0 when no activity was detected after timeout. If an error occurs, -1 is returned and errno is set.