From b023dd17a24b903de6871f39d98efbf398f69020 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 18 Oct 2007 22:05:27 +0200 Subject: [PATCH] Make sure self._master is always initialized --- shell/hardware/hardwaremanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/hardware/hardwaremanager.py b/shell/hardware/hardwaremanager.py index 79b932f2..4eeac033 100644 --- a/shell/hardware/hardwaremanager.py +++ b/shell/hardware/hardwaremanager.py @@ -45,7 +45,7 @@ class HardwareManager(object): self._mixer = gst.element_factory_make('alsamixer') self._mixer.set_state(gst.STATE_PAUSED) - + self._master = None for track in self._mixer.list_tracks(): if track.flags & gst.interfaces.MIXER_TRACK_MASTER: self._master = track