pub unsafe extern "C" fn mbuf_coded_video_frame_queue_get_event(
queue: *mut mbuf_coded_video_frame_queue,
evt: *mut *mut pomp_evt,
) -> c_intExpand description
Get the pomp_evt associated with the queue.
The event can be associated with a pomp_loop to wait for incoming frames. The event is signaled when a frame is pushed, not when the queue is non-empty. To check if the queue is empty, check the return value of mbuf_coded_video_frame_queue_peek(). A callback which needs to handle all available frames in the queue should call mbuf_coded_video_frame_queue_pop() in a loop until -ENOENT is returned.
@param queue: The queue. @param evt: [out] The pomp_evt of the queue.
@return 0 on success, negative errno on error.