a gstreamer.Sample or NULL when the appsink is stopped or EOS or the timeout expires. Call Sample.unref after usage.