summaryrefslogtreecommitdiff
path: root/dvbosd.c
diff options
context:
space:
mode:
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...