wait_backlog_usec


Description:

[ Version ( since = "1.18" ) ]
public Result wait_backlog_usec (int64 timeout)

Wait until there is place in the backlog queue, timeout is reached or this is set to flushing.

If timeout is 0 this function can block forever. If timeout contains a valid timeout, this function will return gst_rtsp_etimeout after the timeout expired.

The typically use of this function is when gst_rtsp_watch_write_data returns gst_rtsp_enomem. The caller then calls this function to wait for free space in the backlog queue and try again.

Parameters:

this

a Watch

timeout

a timeout in microseconds

Returns:

gst_rtsp_ok when if there is room in queue. gst_rtsp_etimeout when timeout was reached. gst_rtsp_eintr when this is flushing gst_rtsp_einval when called with invalid parameters.