Changes since v1: - added explicit `if (s->inputs)` check to input_uninit() loop - added extra `!s->status` check to handle case of negative PTS on status change (since `s->status_pts >= 0` would fail here)