Add comment for Mac OS X volume reset workaround.

This commit is contained in:
jcass 2015-02-04 07:46:31 +02:00
parent 9d931adf4a
commit 090518b96d

View File

@ -320,6 +320,9 @@ class Audio(pykka.ThreadingActor):
:param uri: the URI to play
:type uri: string
"""
# Note: Hack to workaround issue on Mac OS X where volume level
# does not persist between track changes.
# https://github.com/mopidy/mopidy/issues/886
current_volume = self.get_volume()
self._playbin.set_property('uri', uri)
self.set_volume(current_volume)