Get a buffer of media data, waiting until a buffer is available or for a fixed time
period
Synopsis:
#include <OMXAL/OpenMAXAL_QNX.h>
struct XAQNXVideoBufferQueueSourceItf_ {
XAQNXBuffer* (*GetAndWait)(XAQNXBufferQueueSinkItf self,
const struct timespec *abstime);
} ;
Arguments:
- self
- A reference to the sink interface
- abstime
- A pointer to an immutable timespec structure specifying the
waiting period
Library:
mmfilter
Description:
This function attempts to get a buffer of media data. The
function is blocking and waits for the amount of time given in abstime. This
parameter can be NULL to wait indefinitely for a buffer to become
available.
Returns:
A pointer to an
XAQNXBuffer containing media data sent to the sink. If no data
items were available (e.g., if playback or recording is stopped or the timeout expired),
NULL is returned.