Fix fudge-ups when replacing emitter/ws with bus (#1763)
A couple of instances in the mpg123 audio backend didn't contain 'self.', this resolves those allowing the backend to be used again.pull/1765/head
parent
1d4297d33c
commit
1e17caa928
|
@ -76,14 +76,14 @@ class Mpg123Service(AudioBackend):
|
||||||
self.index += 1
|
self.index += 1
|
||||||
# if there are more tracks available play next
|
# if there are more tracks available play next
|
||||||
if self.index < len(self.tracks):
|
if self.index < len(self.tracks):
|
||||||
bus.emit(Message('Mpg123ServicePlay'))
|
self.bus.emit(Message('Mpg123ServicePlay'))
|
||||||
else:
|
else:
|
||||||
self._is_playing = False
|
self._is_playing = False
|
||||||
|
|
||||||
def play(self):
|
def play(self):
|
||||||
LOG.info('Call Mpg123ServicePlay')
|
LOG.info('Call Mpg123ServicePlay')
|
||||||
self.index = 0
|
self.index = 0
|
||||||
bus.emit(Message('Mpg123ServicePlay'))
|
self.bus.emit(Message('Mpg123ServicePlay'))
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
LOG.info('Mpg123ServiceStop')
|
LOG.info('Mpg123ServiceStop')
|
||||||
|
|
Loading…
Reference in New Issue