

def _update(self, dt):
    if self._do_load:
        self._player.open()
        self._do_load = False
        return
    player = self._player
    if (player is None):
        return
    if (player.is_open is False):
        self._do_eos()
        return
    frame = player.get_next_frame()
    if (frame is None):
        return
    if (self._texture is None):
        self._texture = Texture.create(size=(player.get_width(), self.get_height()), colorfmt='rgb')
        self._texture.flip_vertical()
        self.dispatch('on_load')
    if self._texture:
        self._texture.blit_buffer(frame)
        self.dispatch('on_frame')

dataset/ETHPy150Open kivy/kivy/kivy/core/video/video_ffmpeg.py VideoFFMpeg._update/VarMisuse@122/143 `player`->`self`