Skip to content

Commit 8de2d26

Browse files
committed
gh-8 Define binary to use as we could end up with no known binary so far
1 parent 376163e commit 8de2d26

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Settings.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ sub handler2 {
7777
$params->{'binaries'} = [ Plugins::LocalPlayer::Squeezelite->binaries('update') ];
7878
$params->{'running'} = Plugins::LocalPlayer::Squeezelite->alive;
7979

80-
if (my $path = Slim::Utils::Misc::findbin($bin)) {
80+
my $path = Slim::Utils::Misc::findbin($bin);
81+
if ($path) {
8182
if (my $options = `$path -?`) {
8283
# extract descriptions for server address, name, and MAC address
8384
while ($options =~ /(^\s+-[smn]\s+.+\n)/mg) {
@@ -86,8 +87,7 @@ sub handler2 {
8687
}
8788
}
8889

89-
my $devices = Plugins::LocalPlayer::Squeezelite->devices;
90-
90+
my $devices = Plugins::LocalPlayer::Squeezelite->devices($path);
9191
unshift @$devices, { name => '', desc => "Default" };
9292

9393
$params->{'devices'} = $devices;

0 commit comments

Comments
 (0)