Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-10-18 20:05:27 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-10-18 20:05:27 (GMT)
commitb023dd17a24b903de6871f39d98efbf398f69020 (patch)
tree1e2923503099ad3ec4b9a96479900b0b3ef27566 /shell
parent5084ecf4f4c4fdefe7dd3d986e2aec399649e33d (diff)
Make sure self._master is always initialized
Diffstat (limited to 'shell')
-rw-r--r--shell/hardware/hardwaremanager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/hardware/hardwaremanager.py b/shell/hardware/hardwaremanager.py
index 79b932f..4eeac03 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