mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-27 00:19:51 +00:00
[PR #1823] fix: Correct is_decoder_processed_enough() multiprogram logic and suppress false warnings #2574
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/1823
State: closed
Merged: Yes
Summary
Fixes #1701
The
is_decoder_processed_enough()function had a bug where it would always return FALSE in multiprogram mode, causing false "Error in switch_to_next_file()" warnings for files without captions.Root Cause
The condition
dec_ctx->processed_enough == CCX_TRUE && ctx->multiprogram == CCX_FALSEmeant that in multiprogram mode (ctx->multiprogram == CCX_TRUE), the function would never return TRUE, even when all decoders had finished processing.Changes
is_decoder_processed_enough()in both C and Rust:switch_to_next_file():Files Modified
src/lib_ccx/lib_ccx.c- Fixedis_decoder_processed_enough()logicsrc/lib_ccx/file_functions.c- Added empty decoder list checksrc/rust/src/hlist.rs- Fixed Rust version + updated testssrc/rust/src/file_functions/file.rs- Added empty decoder list checkTest plan
.oggfile from issue - no more false error message--autoprogram(multiprogram mode) - works correctly🤖 Generated with Claude Code