tarina

git clone https://git.tarina.org/tarina
Log | Files | Refs | README | LICENSE

commit 51926e4729e979ae697a44722416447c9b81e4f1
parent c37a6c9a80092bffe2f771b6dbd3917f92f3315d
Author: rbckman <rob@tarina.org>
Date:   Tue, 17 May 2022 23:24:12 +0100

random freeze bug when hit back in omxplayer

Diffstat:
Mtarina.py | 18++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/tarina.py b/tarina.py @@ -2704,21 +2704,19 @@ def playdub(filename, player_menu): if menu[selected] == 'BACK' or player.playback_status() == "Stopped": try: if video == True: - try: - player.stop() - playerAudio.stop() - player.quit() - playerAudio.quit() - except: - return remove_shots - os.system('pkill aplay') + #player.stop() + #playerAudio.stop() + player.quit() + playerAudio.quit() + #os.system('pkill -9 aplay') except: #kill it if it dont stop - os.system('pkill dbus-daemon') - os.system('pkill omxplayer') + print('OMG! kill dbus-daemon') if dub == True: os.system('pkill arecord') time.sleep(0.2) + os.system('pkill -9 omxplayer') + #os.system('pkill -9 dbus-daemon') return remove_shots elif menu[selected] == 'REPLAY' or menu[selected] == 'REDUB': pause = False