From 89c783aa6974fda0411420fe46c9feb325b45b2e Mon Sep 17 00:00:00 2001 From: Yan Yan Date: Fri, 24 Nov 2017 10:35:33 +0000 Subject: CC: Clear prior and current channel in text mode in 608. PD# 152764 Change-Id: I0ede76b46c0843ff47306f589418766154d3a83b --- diff --git a/src/caption.c b/src/caption.c index f506151..2d7b4b2 100644 --- a/src/caption.c +++ b/src/caption.c @@ -944,7 +944,6 @@ caption_command(vbi_decoder *vbi, struct caption *cc, cc_channel *ch; int chan, col, i; int last_row; - chan = (cc->curr_chan & 4) + field2 * 2 + ((c1 >> 3) & 1); ch = &cc->channel[chan]; @@ -1128,6 +1127,8 @@ caption_command(vbi_decoder *vbi, struct caption *cc, erase_memory(cc, ch, ch->hidden ^ 1); ch = switch_channel(cc, ch, chan | 4); set_cursor(ch, 1, 0); + erase_memory(cc, ch, ch->hidden); + erase_memory(cc, ch, ch->hidden ^ 1); return; case 11: /* Resume Text Display 001 c10f 010 1011 */ -- cgit