Call pause() at end of each stream
This commit is contained in:
parent
b85f1ac5c4
commit
6a2ec62015
|
@ -43,7 +43,9 @@ def play():
|
|||
|
||||
def pause():
|
||||
global audio
|
||||
print "pausing..."
|
||||
return call("PAUSE", audio.pause)
|
||||
libsaria.event.invite("PREEOS", pause)
|
||||
|
||||
|
||||
def stop():
|
||||
|
|
|
@ -87,7 +87,6 @@ def pause():
|
|||
global player
|
||||
player.set_state(gst.STATE_PAUSED)
|
||||
|
||||
|
||||
def stop():
|
||||
pause()
|
||||
seek(0)
|
||||
|
|
Loading…
Reference in New Issue