Ignore the given metadata when opening.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 5 Jun 2013 04:30:03 +0000 (06:30 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 6 Jun 2013 20:28:12 +0000 (22:28 +0200)
src/main/java/net/pterodactylus/sonitus/data/source/StreamSource.java

index 2efc66d..34a952c 100644 (file)
@@ -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);