diff --git a/src/scdaq.cc b/src/scdaq.cc
index 89ee78b0631e6d148187250627ac87c3e77d6fe5..c020490b9b231ec0a5665c538130e0c10ddad0ca 100644
--- a/src/scdaq.cc
+++ b/src/scdaq.cc
@@ -96,9 +96,8 @@ int run_pipeline(int nbThreads, ctrl &control, config &conf) {
 
   // Create file-writing stage and add it to the pipeline
   if (conf.getNOrbitsPerFile()) {
-    output_stream_by_orbit = std::make_shared<OutputByOrbitStream>(
-        conf.getOutputFilenameBase(), conf.getOutputFilenamePrefix(), control,
-        conf);
+    output_stream_by_orbit =
+        std::make_shared<OutputByOrbitStream>(control, conf);
     pipeline.add_filter(*output_stream_by_orbit);
   } else {
     output_stream_by_size = std::make_shared<OutputBySizeStream>(