Skip to content

Commit

Permalink
Merge pull request #490 from philippe44/8.1-misc
Browse files Browse the repository at this point in the history
Tweaks (see comment)
  • Loading branch information
mherger committed Dec 28, 2020
2 parents e44606e + 815d60a commit 3828924
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Slim/Player/TranscodingHelper.pm
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,10 @@ sub loadConversionTables {
# %d - samplerate: samples/s
# %D - samplerate: ksamples/s

# %C, $CHANNELS$ - channel count
# %C, $CHANNELS$ - source channel count
# %c, $OCHANNELS$ - output channel count
# , $SAMPLESIZE$ - sample size (in bits)
# , $SAMPLERATE$ - sample rate (in Hz)
# $SAMPLESIZE$ - source sample size (in bits)
# $SAMPLERATE$ - source sample rate (in Hz)
# %i - clientid
# %I, $CLIENTID$ - clientid ( : or . replaced by - )
# %p - player model
Expand Down
4 changes: 2 additions & 2 deletions Slim/Web/Settings/Player/Basic.pm
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ sub handler {
$prefs->client($client)->set($pref, \@array);
}

if ($client->isPlayer && $client->isa('Slim::Player::SqueezePlay') && defined $paramRef->{'defeatDestructiveTouchToPlay'}) {
if ($client->isPlayer && defined $paramRef->{'defeatDestructiveTouchToPlay'}) {
$prefs->client($client)->set('defeatDestructiveTouchToPlay', $paramRef->{'defeatDestructiveTouchToPlay'});
}
}
Expand All @@ -124,7 +124,7 @@ sub handler {

$paramRef->{'playericon'} = $class->getPlayerIcon($client,$paramRef);

if ($client->isPlayer && $client->isa('Slim::Player::SqueezePlay')) {
if ($client->isPlayer) {
$paramRef->{'defeatDestructiveTouchToPlay'} = $prefs->client($client)->get('defeatDestructiveTouchToPlay');
$paramRef->{'defeatDestructiveTouchToPlay'} = $prefs->get('defeatDestructiveTouchToPlay') unless defined $paramRef->{'defeatDestructiveTouchToPlay'};
}
Expand Down

0 comments on commit 3828924

Please sign in to comment.