From: David ‘Bombe’ Roden Date: Sun, 17 Mar 2013 10:39:53 +0000 (+0100) Subject: Declare the parameters builder correctly. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=e3a09df0969d06b9794ec2850d47a5522640eb26;p=sonitus.git Declare the parameters builder correctly. --- diff --git a/src/main/java/net/pterodactylus/sonitus/data/filter/LameMp3Decoder.java b/src/main/java/net/pterodactylus/sonitus/data/filter/LameMp3Decoder.java index b2d8ea0..cb23259 100644 --- a/src/main/java/net/pterodactylus/sonitus/data/filter/LameMp3Decoder.java +++ b/src/main/java/net/pterodactylus/sonitus/data/filter/LameMp3Decoder.java @@ -68,7 +68,7 @@ public class LameMp3Decoder extends ExternalMp3Decoder { @Override protected Iterable parameters(Metadata metadata) { - ImmutableList.Builder parameters = ImmutableList.builder(); + ImmutableList.Builder parameters = ImmutableList.builder(); parameters.add("--mp3input").add("--decode").add("-t"); if (swapBytes) { parameters.add("-x"); diff --git a/src/main/java/net/pterodactylus/sonitus/data/filter/LameMp3Encoder.java b/src/main/java/net/pterodactylus/sonitus/data/filter/LameMp3Encoder.java index 98fdd91..85675ce 100644 --- a/src/main/java/net/pterodactylus/sonitus/data/filter/LameMp3Encoder.java +++ b/src/main/java/net/pterodactylus/sonitus/data/filter/LameMp3Encoder.java @@ -139,7 +139,7 @@ public class LameMp3Encoder extends ExternalMp3Encoder { @Override protected Iterable parameters(Metadata metadata) { - ImmutableList.Builder parameters = ImmutableList.builder(); + ImmutableList.Builder parameters = ImmutableList.builder(); parameters.add("-r"); parameters.add("-s").add(String.valueOf(metadata.frequency() / 1000.0)); if (swapBytes) { diff --git a/src/main/java/net/pterodactylus/sonitus/data/filter/OggVorbisDecoder.java b/src/main/java/net/pterodactylus/sonitus/data/filter/OggVorbisDecoder.java index df1e2f1..2cd9035 100644 --- a/src/main/java/net/pterodactylus/sonitus/data/filter/OggVorbisDecoder.java +++ b/src/main/java/net/pterodactylus/sonitus/data/filter/OggVorbisDecoder.java @@ -88,7 +88,7 @@ public class OggVorbisDecoder extends ExternalFilter { @Override protected Iterable parameters(Metadata metadata) { - ImmutableList.Builder parameters = ImmutableList.builder(); + ImmutableList.Builder parameters = ImmutableList.builder(); parameters.add("-R"); if (swapBytes) { parameters.add("-e").add("1");