[videoinfoscanner] fix infinite loop

also fixes infinite loop when items[0] is a file
[videoinfoscanner] do not consider optical file paths as valid subpaths