Skip to content

Commit

Permalink
ngx-kmp-cc bug fix (#219)
Browse files Browse the repository at this point in the history
need to output if any of the windows becomes visible, should not be only
according to the last one toggled
  • Loading branch information
erankor authored Feb 2, 2025
1 parent 84e7fb5 commit f2186d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nginx-kmp-cc-module/src/media/cea708.c
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,7 @@ static int CEA708_Decode_C1(cea708_t *h, uint8_t code)
{
if (h->window[i].b_defined)
{
b_output = h->window[i].b_visible;
b_output |= h->window[i].b_visible;
}

CEA708_Window_ClearText(&h->window[i]);
Expand Down Expand Up @@ -1534,7 +1534,7 @@ static int CEA708_Decode_C1(cea708_t *h, uint8_t code)
{
if (h->window[i].b_defined)
{
b_output = h->window[i].b_visible;
b_output |= h->window[i].b_visible;
h->window[i].b_visible = false;
}
}
Expand All @@ -1552,7 +1552,7 @@ static int CEA708_Decode_C1(cea708_t *h, uint8_t code)
{
if (h->window[i].b_defined)
{
b_output = h->window[i].b_visible;
b_output |= h->window[i].b_visible;
h->window[i].b_visible = !h->window[i].b_visible;
}
}
Expand All @@ -1570,7 +1570,7 @@ static int CEA708_Decode_C1(cea708_t *h, uint8_t code)
{
if (h->window[i].b_defined)
{
b_output = h->window[i].b_visible;
b_output |= h->window[i].b_visible;
CEA708_Window_Reset(&h->window[i]);
}
}
Expand Down

0 comments on commit f2186d9

Please sign in to comment.