media: venus: core,pm: fix potential infinite loop