[Release version 0.2.24] Check state before set video encoder

No match.