Skip to content

Commit be65910

Browse files
fix: Value of dtvcc_rust.is_active as per C
1 parent 599ad7c commit be65910

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rust/src/decoder/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl<'a> Dtvcc<'a> {
4747
pub fn new(opts: &ccx_decoder_dtvcc_settings) -> Self {
4848
// closely follows `dtvcc_init` at `src/lib_ccx/ccx_dtvcc.c:82`
4949

50-
let is_active = false;
50+
let is_active = is_true(opts.enabled);
5151
let active_services_count = opts.active_services_count as u8;
5252
let services_active = opts.services_enabled.to_vec();
5353
let report_enabled = is_true(opts.print_file_reports);

0 commit comments

Comments
 (0)