hd-rum-recompress: fix final crash

steps to reproduce the fixed behavior:
1) run `hd-rum-transcode 8M 7000 100::`
2) press Ctrl-C

There is compress_done() called once - once by the now commented out
line and then also with compress_state_deleter::operator().

This problem technically occurs since 2ca38e7c (16th Jun 2025) when
module_done() was replaced with compress_done(), which doesn't allow double
call (in cotrary to module_done(), which does). The root of the problem
is perhaps the commit 7460563 (2022-01-18).
This commit is contained in:
Martin Pulec
2025-09-30 12:53:16 +02:00
parent fb4420ea52
commit a4097ba394

View File

@@ -347,7 +347,7 @@ void recompress_done(struct state_recompress *s) {
compress_frame(worker.second.compress.get(), nullptr);
worker.second.thread.join();
compress_done(worker.second.compress.get());
// compress_done(worker.second.compress.get());
}
}
delete s;