Skip to content

Commit

Permalink
fix notranscoding playback
Browse files Browse the repository at this point in the history
  • Loading branch information
philippe44 authored and mherger committed Nov 18, 2022
1 parent 27585c2 commit 395cb30
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Slim/Player/Song.pm
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,6 @@ sub getNextSong {
# Some 'native' formats are streamed with a different format to their container
my %streamFormatMap = (
wav => 'pcm',
mp4 => 'aac',
);

sub open {
Expand Down Expand Up @@ -434,10 +433,9 @@ sub open {
} else {
require Slim::Player::CapabilitiesHelper;

# Set the correct format for WAV/AAC playback
if ( exists $streamFormatMap{$format} ) {
$format = $streamFormatMap{$format};
}
# Set the correct format for WAV playback
$self->wantFormat($format);
$format = $streamFormatMap{$format} || $format;

# Is format supported by all players?
if (!grep {$_ eq $format} Slim::Player::CapabilitiesHelper::supportedFormats($client)) {
Expand Down

0 comments on commit 395cb30

Please sign in to comment.