@@ -896,7 +896,12 @@ int process_non_multiprogram_general_loop(struct lib_ccx_ctx *ctx,
896
896
cinfo = get_cinfo (ctx -> demux_ctx , pid );
897
897
* enc_ctx = update_encoder_list_cinfo (ctx , cinfo );
898
898
* dec_ctx = update_decoder_list_cinfo (ctx , cinfo );
899
+
900
+ #ifndef DISABLE_RUST
901
+ ccxr_dtvcc_set_encoder ((* dec_ctx )-> dtvcc_rust , * enc_ctx );
902
+ #else
899
903
(* dec_ctx )-> dtvcc -> encoder = (void * )(* enc_ctx );
904
+ #endif
900
905
901
906
if ((* dec_ctx )-> timing -> min_pts == 0x01FFFFFFFFLL ) // if we didn't set the min_pts of the program
902
907
{
@@ -1093,7 +1098,12 @@ int general_loop(struct lib_ccx_ctx *ctx)
1093
1098
1094
1099
enc_ctx = update_encoder_list_cinfo (ctx , cinfo );
1095
1100
dec_ctx = update_decoder_list_cinfo (ctx , cinfo );
1101
+
1102
+ #ifndef DISABLE_RUST
1103
+ ccxr_dtvcc_set_encoder (dec_ctx -> dtvcc_rust , enc_ctx );
1104
+ #else
1096
1105
dec_ctx -> dtvcc -> encoder = (void * )enc_ctx ; // WARN: otherwise cea-708 will not work
1106
+ #endif
1097
1107
1098
1108
if (dec_ctx -> timing -> min_pts == 0x01FFFFFFFFLL ) // if we didn't set the min_pts of the program
1099
1109
{
@@ -1268,7 +1278,13 @@ int rcwt_loop(struct lib_ccx_ctx *ctx)
1268
1278
}
1269
1279
1270
1280
dec_ctx = update_decoder_list (ctx );
1281
+
1282
+ #ifndef DISABLE_RUST
1283
+ ccxr_dtvcc_set_encoder (dec_ctx -> dtvcc_rust , enc_ctx );
1284
+ #else
1271
1285
dec_ctx -> dtvcc -> encoder = (void * )enc_ctx ; // WARN: otherwise cea-708 will not work
1286
+ #endif
1287
+
1272
1288
if (parsebuf [6 ] == 0 && parsebuf [7 ] == 2 )
1273
1289
{
1274
1290
dec_ctx -> codec = CCX_CODEC_TELETEXT ;
0 commit comments