diff --git a/mopidy/mixers/gstreamer_software.py b/mopidy/mixers/gstreamer_software.py index 1225cafd..333690ea 100644 --- a/mopidy/mixers/gstreamer_software.py +++ b/mopidy/mixers/gstreamer_software.py @@ -1,7 +1,4 @@ -import multiprocessing - from mopidy.mixers import BaseMixer -from mopidy.utils.process import pickle_connection class GStreamerSoftwareMixer(BaseMixer): """Mixer which uses GStreamer to control volume in software.""" @@ -10,16 +7,7 @@ class GStreamerSoftwareMixer(BaseMixer): super(GStreamerSoftwareMixer, self).__init__(*args, **kwargs) def _get_volume(self): - my_end, other_end = multiprocessing.Pipe() - self.backend.output_queue.put({ - 'command': 'get_volume', - 'reply_to': pickle_connection(other_end), - }) - my_end.poll(None) - return my_end.recv() + return self.backend.output.get_volume() def _set_volume(self, volume): - self.backend.output_queue.put({ - 'command': 'set_volume', - 'volume': volume, - }) + self.backend.output.set_volume(volume)