A topological phase transition in ternary chalcogenide films