Fix showing input volume

Fix two typos in code that decided whether to show input volume and
mute switch.
This commit is contained in:
Giovanni Campagna 2010-10-20 21:15:24 +02:00
parent ac470b44ef
commit fe1a9c2b4b

View File

@ -117,9 +117,9 @@ Indicator.prototype = {
// only show input widgets if any application is recording audio
let showInput = false;
let recordingApps = this._control.get_source_outputs();
if (this._source && recordingApps) {
for (let i = 0; i < recordingApp.length; i++) {
let outputStream = recordingApp[i];
if (this._input && recordingApps) {
for (let i = 0; i < recordingApps.length; i++) {
let outputStream = recordingApps[i];
let id = outputStream.get_application_id();
// but skip gnome-volume-control and pavucontrol
// (that appear as recording because they show the input level)