mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-21 13:39:56 +00:00
[PR #1818] [MERGED] fix: Enable stdout output for CEA-708 captions on Windows #2560
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?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/1818
Author: @cfsmp3
Created: 12/14/2025
Status: ✅ Merged
Merged: 12/18/2025
Merged by: @cfsmp3
Base:
master← Head:fix/issue-1693-stdout-crash📝 Commits (2)
ecb0780fix: Enable stdout output for CEA-708 captions on Windowse2dfdaaMerge branch 'master' into fix/issue-1693-stdout-crash📊 Changes
4 files changed (+81 additions, -3 deletions)
View changed files
📝
src/lib_ccx/ccx_encoders_common.c(+5 -0)📝
src/rust/src/decoder/service_decoder.rs(+0 -1)📝
src/rust/src/decoder/tv_screen.rs(+73 -0)📝
src/rust/src/lib.rs(+3 -2)📄 Description
Summary
Fixes #1693 - ccextractorwinfull.exe can't print captions to stdout
The CEA-708 decoder crashed on Windows when using
--stdoutbecause thedtvcc_writerwas not properly initialized for stdout output.Changes
Fixed Windows stdout handle initialization (
ccx_encoders_common.c):GetStdHandle(STD_OUTPUT_HANDLE)instead ofNULLforfhandleChanged env_logger target from Stdout to Stderr (
lib.rs):--stdoutRemoved redundant debug statement (
service_decoder.rs):debug!("{}", self.current_window)was noisy and duplicated by a more detailed debug statement below itTest plan
test_writer_output_with_valid_fd- verifies stdout mode works when fd is pre-settest_writer_output_missing_filename_and_fd- verifies proper error handling (not panic)GetStdHandle(STD_OUTPUT_HANDLE)API🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.