Fix deadlock when changing CPL in the player (#1827).