From d7575d41e127d500acdbed98f744c1e3ee7baa54 Mon Sep 17 00:00:00 2001 From: Sander Land <48946947+sanderland@users.noreply.github.com> Date: Fri, 28 May 2021 21:39:33 +0200 Subject: [PATCH] SoundLoader: Fix play calls not working in ffpyplayer after the first (#7541) * seek on play in ffpyplayer * remove kivy/graphics/cgl.h, edit .gitignore --- .gitignore | 1 + kivy/core/audio/audio_ffpyplayer.py | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index e63b18799..28d198eed 100644 --- a/.gitignore +++ b/.gitignore @@ -31,6 +31,7 @@ kivy/graphics/*.cpp kivy/graphics/*.pyd kivy/graphics/cgl_backend/*.c kivy/graphics/cgl_backend/*.pyd +kivy/graphics/cgl.h kivy/include/config.h kivy/include/config.pxi kivy/lib/gstplayer/_gstplayer.c diff --git a/kivy/core/audio/audio_ffpyplayer.py b/kivy/core/audio/audio_ffpyplayer.py index 08ddd0f81..6283aae1b 100644 --- a/kivy/core/audio/audio_ffpyplayer.py +++ b/kivy/core/audio/audio_ffpyplayer.py @@ -147,6 +147,7 @@ class SoundFFPy(Sound): self._state = 'playing' self.state = 'play' super(SoundFFPy, self).play() + self.seek(0) def stop(self): if self._ffplayer and self._state == 'playing':