Set play button status correctly when stopped

The stop function needs to return True if it is successful.
This commit is contained in:
Bryan Schumaker 2010-12-27 19:09:07 -05:00
parent ef5be29197
commit 6fc6bb60f6
1 changed files with 3 additions and 1 deletions

View File

@ -153,12 +153,14 @@ def pause():
def stop_locked():
pause_locked()
seek_locked(0)
return get_state_locked() == gst.STATE_PAUSED
def stop():
global lock
lock.acquire()
stop_locked()
ret = stop_locked()
lock.release()
return ret
def seek_locked(prcnt):