Set play button status correctly when stopped
The stop function needs to return True if it is successful.
This commit is contained in:
parent
ef5be29197
commit
6fc6bb60f6
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue