SoundLoader: Fix play calls not working in ffpyplayer after the first (#7541)

* seek on play in ffpyplayer

* remove kivy/graphics/cgl.h, edit .gitignore
This commit is contained in:
Sander Land 2021-05-28 21:39:33 +02:00 committed by GitHub
parent e10ef1a11c
commit d7575d41e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

1
.gitignore vendored
View File

@ -31,6 +31,7 @@ kivy/graphics/*.cpp
kivy/graphics/*.pyd kivy/graphics/*.pyd
kivy/graphics/cgl_backend/*.c kivy/graphics/cgl_backend/*.c
kivy/graphics/cgl_backend/*.pyd kivy/graphics/cgl_backend/*.pyd
kivy/graphics/cgl.h
kivy/include/config.h kivy/include/config.h
kivy/include/config.pxi kivy/include/config.pxi
kivy/lib/gstplayer/_gstplayer.c kivy/lib/gstplayer/_gstplayer.c

View File

@ -147,6 +147,7 @@ class SoundFFPy(Sound):
self._state = 'playing' self._state = 'playing'
self.state = 'play' self.state = 'play'
super(SoundFFPy, self).play() super(SoundFFPy, self).play()
self.seek(0)
def stop(self): def stop(self):
if self._ffplayer and self._state == 'playing': if self._ffplayer and self._state == 'playing':