diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-02-12 15:54:06 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-02-12 15:54:06 +0100 |
commit | 3b871f8bb6726ce0aff6a410abc236fc2b800e00 (patch) | |
tree | 30135327a0a105e1f3aeca60287c2ba7432b3ddd /dvbosd.c | |
parent | a481a5200c266dd387d1dca8a0253abfb208f031 (diff) | |
download | vdr-3b871f8bb6726ce0aff6a410abc236fc2b800e00.tar.gz vdr-3b871f8bb6726ce0aff6a410abc236fc2b800e00.tar.bz2 |
Now using twice the buffer reserve in cTransfer if the primary DVB card is an unmodified version with only 2MB of SDRAM
Diffstat (limited to 'dvbosd.c')
-rw-r--r-- | dvbosd.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbosd.c 1.25 2004/11/20 14:29:25 kls Exp $ + * $Id: dvbosd.c 1.26 2005/02/12 15:36:31 kls Exp $ */ #include "dvbosd.h" @@ -48,6 +48,13 @@ cDvbOsd::cDvbOsd(int Left, int Top, int OsdDev) cap.cmd = OSD_CAP_MEMSIZE; if (ioctl(osdDev, OSD_GET_CAPABILITY, &cap) == 0) osdMem = cap.val; + #define FW_NEEDS_BUFFER_RESERVE_FOR_AC3 + #ifdef FW_NEEDS_BUFFER_RESERVE_FOR_AC3 + //XXX This is a very ugly hack to allow cDvbOsd to reduce the buffer + //XXX requirements in cTransfer if it detects a 4MB full featured DVB card. + extern bool DvbCardWith4MBofSDRAM; + DvbCardWith4MBofSDRAM = osdMem >= 1000000; + #endif #endif // must clear all windows here to avoid flashing effects - doesn't work if done // in Flush() only for the windows that are actually used... |