TYPE_BLOCKED
if (sample->type == TYPE_BLOCKED)
if (p && p->current && p->current->state == TYPE_BLOCKED) {
prev_p->current->state = TYPE_BLOCKED;