stop on error
This commit is contained in:
parent
2d8dfa2ec5
commit
c8cb320d4d
1 changed files with 4 additions and 1 deletions
|
@ -234,7 +234,10 @@ def main():
|
||||||
|
|
||||||
player = Sync(mode=args.mode, playlist=args.playlist, fullscreen=not args.window)
|
player = Sync(mode=args.mode, playlist=args.playlist, fullscreen=not args.window)
|
||||||
while player.active:
|
while player.active:
|
||||||
player.mpv.wait_for_playback()
|
try:
|
||||||
|
player.mpv.wait_for_playback()
|
||||||
|
except:
|
||||||
|
break
|
||||||
player.stop()
|
player.stop()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue