diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-05-18 14:03:22 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-05-18 14:03:22 +0200 |
commit | bdccbbe93e9729944787d3158bee7a755d3bf286 (patch) | |
tree | 17073d49ff0d2d94672c7301a7771f0b2724e42e /dvbosd.c | |
parent | 3e5b31af5e88bc4e43971a70b5add6f67cebb701 (diff) | |
download | vdr-bdccbbe93e9729944787d3158bee7a755d3bf286.tar.gz vdr-bdccbbe93e9729944787d3158bee7a755d3bf286.tar.bz2 |
Completely moved OSD handling out of the cDvbApi class, into the new cOsd
Diffstat (limited to 'dvbosd.c')
-rw-r--r-- | dvbosd.c | 14 |
1 files changed, 7 insertions, 7 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.16 2002/05/18 12:39:39 kls Exp $ + * $Id: dvbosd.c 1.17 2002/05/18 13:39:02 kls Exp $ */ #include "dvbosd.h" @@ -13,12 +13,12 @@ #include <sys/unistd.h> #include "tools.h" -cDvbOsd::cDvbOsd(int VideoDev, int x, int y) +cDvbOsd::cDvbOsd(int OsdDev, int x, int y) :cOsdBase(x, y) { - videoDev = VideoDev; - if (videoDev < 0) - esyslog("ERROR: illegal video device handle (%d)!", videoDev); + osdDev = OsdDev; + if (osdDev < 0) + esyslog("ERROR: illegal OSD device handle (%d)!", osdDev); } cDvbOsd::~cDvbOsd() @@ -44,7 +44,7 @@ bool cDvbOsd::SetWindow(cWindow *Window) void cDvbOsd::Cmd(OSD_Command cmd, int color, int x0, int y0, int x1, int y1, const void *data) { - if (videoDev >= 0) { + if (osdDev >= 0) { osd_cmd_t dc; dc.cmd = cmd; dc.color = color; @@ -58,7 +58,7 @@ void cDvbOsd::Cmd(OSD_Command cmd, int color, int x0, int y0, int x1, int y1, co sigfillset(&set); sigdelset(&set, SIGALRM); sigprocmask(SIG_BLOCK, &set, &oldset); - ioctl(videoDev, OSD_SEND_CMD, &dc); + ioctl(osdDev, OSD_SEND_CMD, &dc); if (cmd == OSD_SetBlock) // XXX this is the only command that takes longer usleep(5000); // XXX Workaround for a driver bug (cInterface::DisplayChannel() displayed texts at wrong places // XXX and sometimes the OSD was no longer displayed). |