%s",
- (unsigned long long) tv->time_ms_show + encoder->subs_delay,
+ (unsigned long long) decoder->tv->time_ms_show + encoder->subs_delay,
encoder->encoded_crlf);
- write(encoder->dtvcc_writers[tv->service_number - 1].fd, buf, strlen(buf));
+ write(encoder->dtvcc_writers[decoder->tv->service_number - 1].fd, buf, strlen(buf));
for (int i = 0; i < CCX_DTVCC_SCREENGRID_ROWS; i++)
{
- if (!_dtvcc_is_row_empty(tv, i))
+ if (!_dtvcc_is_row_empty(decoder->tv, i))
{
- //_dtvcc_write_tag_open(tv, encoder, i);
- //_dtvcc_write_row(writer, tv, i, encoder);
- //_dtvcc_write_tag_close(tv, encoder, i);
- write(encoder->dtvcc_writers[tv->service_number - 1].fd,
+ _dtvcc_write_row(writer, decoder, i, encoder, 1);
+ write(encoder->dtvcc_writers[decoder->tv->service_number - 1].fd,
encoder->encoded_br, encoder->encoded_br_length);
- write(encoder->dtvcc_writers[tv->service_number - 1].fd,
+ write(encoder->dtvcc_writers[decoder->tv->service_number - 1].fd,
encoder->encoded_crlf, encoder->encoded_crlf_length);
}
}
sprintf(buf, "