mbuf_coded_video_frame_queue_peek

Function mbuf_coded_video_frame_queue_peek 

Source
pub unsafe extern "C" fn mbuf_coded_video_frame_queue_peek(
    queue: *mut mbuf_coded_video_frame_queue,
    frame: *mut *mut mbuf_coded_video_frame,
) -> c_int
Expand description

Peek a frame from a queue.

This function returns the first frame in the queue (or -ENOENT if the queue is empty), but does not remove it from the queue. The returned frame is properly referenced, so the caller will need to call mbuf_coded_video_frame_unref() when the frame is no longer needed.

@param queue: The queue. @param frame: [out] The first frame in the queue.

@return 0 on success, negative errno on error.