Make sure self._master is always initialized

This commit is contained in:
Marco Pesenti Gritti 2007-10-18 22:05:27 +02:00
parent 5084ecf4f4
commit b023dd17a2

View File

@ -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