summaryrefslogtreecommitdiff
path: root/dvbosd.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-02-12 15:54:06 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-02-12 15:54:06 +0100
commit3b871f8bb6726ce0aff6a410abc236fc2b800e00 (patch)
tree30135327a0a105e1f3aeca60287c2ba7432b3ddd /dvbosd.c
parenta481a5200c266dd387d1dca8a0253abfb208f031 (diff)
downloadvdr-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.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/dvbosd.c b/dvbosd.c
index fbf6f61c..360825fc 100644
--- a/dvbosd.c
+++ b/dvbosd.c
@@ -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...