rtmpproto: Fix assignments in if()