From 0502acae0ba629fae4b66bf08f13ff5f442c9fb4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 5 Jun 2013 06:30:03 +0200 Subject: [PATCH] Ignore the given metadata when opening. --- .../java/net/pterodactylus/sonitus/data/source/StreamSource.java | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.7.4