X-Git-Url: http://git.maemo.org/git/?p=watersofshiloah;a=blobdiff_plain;f=src%2Fstream.py;fp=src%2Fstream.py;h=e9e3fb1ac94340b6f970fd2c78f03b2d7b533e68;hp=63afede61ba926bb8c3cf802289b3533bad58d91;hb=cb748fe6c17f9f6ebb4fc25dfa88626a6307714c;hpb=b82096fdb9a91618e00ec6e8efd9ab055380ee5f diff --git a/src/stream.py b/src/stream.py index 63afede..e9e3fb1 100644 --- a/src/stream.py +++ b/src/stream.py @@ -68,7 +68,7 @@ class GSTStream(gobject.GObject): def set_file(self, uri): if self._uri != file: self._invalidate_cache() - if self.playing: + if self.state != self.STATE_STOP: self.stop() self._uri = uri