Gao Lin's second-half penalty, which he won after being fouled in the box, ensured China qualified for the Asian Cup quarter-finals with a 2-1 win over Thailand.