def change_video_path(self, video_path):
        """Change video path and replace surface.

        Only does so if the given video path is
        different than the one currently in use.
        """
        if self.video_path == video_path:
            return

        self.video_data = VIDEO_DATA_DB[video_path][self.video_settings]

        self.frames = deque(self.video_data)

        self.image.blit(self.clean_image, (0, 0))

        blit_aligned(
            self.frames[0],
            self.image,
            retrieve_pos_from="center",
            assign_pos_to="center",
        )

        self.video_path = video_path
Change video path and replace surface.

        Only does so if the given video path is
        different than the one currently in use.
        
nodezator/videopreview/cache.py