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

Origin commit data
------------------
Commit: 40a4ec4262
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-03-28 (Tue, 28 Mar 2017)
This commit is contained in:
Michael Liebmann
2017-03-28 23:55:03 +02:00
parent 8722e86ded
commit 19b0917c6f
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; yRes = screeninfo.yres;
bpp = screeninfo.bits_per_pixel; bpp = screeninfo.bits_per_pixel;
printf(LOGTAG "%dx%dx%d line length %d. using %s graphics accelerator.\n", xRes, yRes, bpp, stride, _fix.id); 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; int needmem = stride * yRes * 2;
if (available >= needmem) if (available >= needmem)
{ {

View File

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

View File

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