summaryrefslogtreecommitdiff
path: root/test/run_filter.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-08-26 21:14:02 +0200
committerMax Kellermann <max@musicpd.org>2019-08-26 21:17:31 +0200
commitf750c8012a5853c5353d1d1b773f9b22d7395070 (patch)
tree772d91401e9932a33f75705c3bfaf0816f73daa7 /test/run_filter.cxx
parentb0a04b3da879182192447ccf0a123d6c1bc80250 (diff)
test/run_filter: use Filter::Flush()
Diffstat (limited to 'test/run_filter.cxx')
-rw-r--r--test/run_filter.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/run_filter.cxx b/test/run_filter.cxx
index 5a14db097..0515b1b4e 100644
--- a/test/run_filter.cxx
+++ b/test/run_filter.cxx
@@ -183,6 +183,13 @@ try {
FullWrite(output_fd, dest);
}
+ while (true) {
+ auto dest = filter->Flush();
+ if (dest.IsNull())
+ break;
+ FullWrite(output_fd, dest);
+ }
+
/* cleanup and exit */
return EXIT_SUCCESS;