cea708: Fix support for rendering of multiple windows
commit27be2e658a4fcf8462ec800fe86b712c02302c4f
authorDevin Heitmueller <dheitmueller@ltnglobal.com>
Wed, 23 Jan 2019 22:09:10 +0000 (23 17:09 -0500)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 25 Jan 2019 23:35:28 +0000 (26 00:35 +0100)
treee4af936dce2a8d78d85afccd5f855d09c7a2d066
parent170c863d5f7cdc9a90e337dbbe765599b1c6877b
cea708: Fix support for rendering of multiple windows

In the existing code, p_region would always be equal to
p_spu_sys->region, since that is what it is initalized to and
nothing ever changes it.  Hence as the loop iterates, all the
windows will be update the first subpicture region (i.e.
corrupting that region such that it's properties are exclusively
that of the last window in the loop).  The result is only
the last window is ever rendered on-screen.

Add a variable to determine whether to use the original region
or whether to create a new region (so we end up with a different
subpicture region for each window).

Signed-off-by: Devin Heitmueller <dheitmueller@ltnglobal.com>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/codec/cea708.c