Create all controlled components with an event bus.
[sonitus.git] / src / main / java / net / pterodactylus / sonitus / data / filter / FlacDecoder.java
index e8447ef..fb644d3 100644 (file)
@@ -20,6 +20,7 @@ package net.pterodactylus.sonitus.data.filter;
 import net.pterodactylus.sonitus.data.Metadata;
 
 import com.google.common.collect.ImmutableList;
+import com.google.common.eventbus.EventBus;
 
 /**
  * Decoder {@link net.pterodactylus.sonitus.data.Filter} for FLAC files.
@@ -37,11 +38,13 @@ public class FlacDecoder extends ExternalFilter {
        /**
         * Creates a new FLAC decoder.
         *
+        * @param eventBus
+        *              The event bus
         * @param binary
         *              The location of the binary
         */
-       public FlacDecoder(String binary) {
-               super("FLAC Decoder");
+       public FlacDecoder(EventBus eventBus, String binary) {
+               super(eventBus, "FLAC Decoder");
                this.binary = binary;
        }