CFbAccelCSHD[1|2]::setMode(): Insert cVideo::updateOsdScreenInfo()

This commit is contained in:
M. Liebmann
2017-03-28 23:55:03 +02:00
parent 5e00bc5b4c
commit 40a4ec4262
3 changed files with 10 additions and 0 deletions

View File

@@ -370,6 +370,10 @@ int CFbAccelCSHD1::setMode(unsigned int, unsigned int, unsigned int)
yRes = screeninfo.yres;
bpp = screeninfo.bits_per_pixel;
printf(LOGTAG "%dx%dx%d line length %d. using %s graphics accelerator.\n", xRes, yRes, bpp, stride, _fix.id);
if (videoDecoder != NULL)
videoDecoder->updateOsdScreenInfo();
int needmem = stride * yRes * 2;
if (available >= needmem)
{

View File

@@ -289,6 +289,9 @@ max res 1920x1080
stride 7680
*/
if (videoDecoder != NULL)
videoDecoder->updateOsdScreenInfo();
int needmem = stride * yRes * 2;
if (available >= needmem)
{

View File

@@ -36,4 +36,7 @@
#include <system/debug.h>
#include <cs_api.h>
#include <video_cs.h>
#include <cnxtfb.h>
extern cVideo * videoDecoder;