Call pause() at end of each stream

This commit is contained in:
Bryan Schumaker 2010-10-18 10:49:48 -04:00
parent b85f1ac5c4
commit 6a2ec62015
2 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,9 @@ def play():
def pause():
global audio
print "pausing..."
return call("PAUSE", audio.pause)
libsaria.event.invite("PREEOS", pause)
def stop():

View File

@ -87,7 +87,6 @@ def pause():
global player
player.set_state(gst.STATE_PAUSED)
def stop():
pause()
seek(0)