Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Junker committed Apr 7, 2019
1 parent 06f81de commit bf5a012
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/pulse.vala
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public class Pulse : Object

for (;;)
{
if (op.get_state() == PulseAudio.Operation.DONE)
if (op.get_state() == PulseAudio.Operation.State.DONE)
{
return list;
}
Expand Down Expand Up @@ -157,25 +157,19 @@ public class Pulse : Object
{
this.context.get_server_info((ctx, server_info) =>
{
bool changed = false;

if (this.current_source_name == null)
{
this.current_source_name = server_info.default_source_name;
changed = true;
this.refresh_source_info();
}

if (config.use_default_source && this.current_source_name != server_info.default_source_name)
{
this.current_source_name = server_info.default_source_name;
config.source_name = this.current_source_name;
changed = true;
}

if (changed)
{
this.refresh_source_info();
}

});
}

Expand Down

0 comments on commit bf5a012

Please sign in to comment.