AppSink.pullSample

This function blocks until a sample or EOS becomes available or the appsink element is set to the READY/NULL state.

This function will only return samples when the appsink is in the PLAYING state. All rendered buffers will be put in a queue so that the application can pull samples at its own rate. Note that when the application does not pull samples fast enough, the queued buffers could consume a lot of memory, especially when dealing with raw video frames.

If an EOS event was received before any buffers, this function returns %NULL. Use gst_app_sink_is_eos () to check for the EOS condition.

class AppSink
pullSample
()

Return Value

Type: Sample

a #GstSample or NULL when the appsink is stopped or EOS. Call gst_sample_unref() after usage.

Meta