Li Bian
The question of succession arose near the end of Li Bian's reign. He preferred his second son Li Jingda. However his oldest son Li Jing was eventually picked as his heir. In 943 Li Bian died and Li Jing succeeded his father.