diff options
author | Max Kellermann <max@musicpd.org> | 2019-08-26 21:14:02 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-09-07 20:07:40 +0200 |
commit | 88446ccde961cde1ec21ec6036fef2f2b81af3b4 (patch) | |
tree | cd1471a751ae9121130c976cd59a15d864e06a71 /test | |
parent | 6238cc073474ce079197ff62e3f66f81963fc127 (diff) |
test/run_filter: use Filter::Flush()
Diffstat (limited to 'test')
-rw-r--r-- | test/run_filter.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/run_filter.cxx b/test/run_filter.cxx index d51461511..c6b6f9bff 100644 --- a/test/run_filter.cxx +++ b/test/run_filter.cxx @@ -184,6 +184,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; |