From: David ‘Bombe’ Roden Date: Wed, 5 Jun 2013 04:30:03 +0000 (+0200) Subject: Ignore the given metadata when opening. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0502acae0ba629fae4b66bf08f13ff5f442c9fb4;p=sonitus.git Ignore the given metadata when opening. --- diff --git a/src/main/java/net/pterodactylus/sonitus/data/source/StreamSource.java b/src/main/java/net/pterodactylus/sonitus/data/source/StreamSource.java index 2efc66d..34a952c 100644 --- a/src/main/java/net/pterodactylus/sonitus/data/source/StreamSource.java +++ b/src/main/java/net/pterodactylus/sonitus/data/source/StreamSource.java @@ -151,6 +151,11 @@ public class StreamSource extends AbstractFilter { } @Override + public void open(Metadata metadata) throws IOException { + /* ignore metadata when opening. */ + } + + @Override public DataPacket get(int bufferSize) throws IOException { byte[] buffer = new byte[bufferSize]; metadataStream.read(buffer);