tests: Make DummyAudio reset position when URI changes

This commit is contained in:
Stein Magnus Jodal 2018-04-09 23:46:30 +02:00
parent 84aafaadcb
commit 3e91f9819d

View File

@ -31,9 +31,10 @@ class DummyAudio(pykka.ThreadingActor):
def set_uri(self, uri):
assert self._uri is None, 'prepare change not called before set'
self._tags = {}
self._position = 0
self._uri = uri
self._stream_changed = True
self._tags = {}
def set_appsrc(self, *args, **kwargs):
pass