Removed an obsolete local variable in dvbsdffosd.c

This commit is contained in:
Klaus Schmidinger 2011-04-17 12:57:29 +02:00
parent 475e64eeec
commit 79f8c5f38e
5 changed files with 11 additions and 7 deletions

View File

@ -2630,6 +2630,7 @@ Paul Menzel <paulepanter@users.sourceforge.net>
for making include paths not be overwritten in the Makefile for making include paths not be overwritten in the Makefile
for adding LDFLAGS to the linker calls in the Makefiles for adding LDFLAGS to the linker calls in the Makefiles
for reporting a possible memory leak in the "pictures" plugin for reporting a possible memory leak in the "pictures" plugin
for removing an obsolete local variable in dvbsdffosd.c
Radek Stastny <dedkus@gmail.com> Radek Stastny <dedkus@gmail.com>
for translating OSD texts to the Czech language for translating OSD texts to the Czech language

View File

@ -6598,3 +6598,4 @@ Video Disk Recorder Revision History
cRecordingInfo or cRecording (reported by Mika Laitio). cRecordingInfo or cRecording (reported by Mika Laitio).
- The dvbhddevice plugin is now part of the VDR distribution archive (thanks to - The dvbhddevice plugin is now part of the VDR distribution archive (thanks to
Andreas Regel). Andreas Regel).
- Removed an obsolete local variable in dvbsdffosd.c (thanks to Paul Menzel).

View File

@ -15,3 +15,7 @@ VDR Plugin 'dvbsddevice' Revision History
- The PCR pid is now recorded for channels where this is different from the - The PCR pid is now recorded for channels where this is different from the
video PID. video PID.
2011-04-17: Version 0.0.4
- Removed an obsolete local variable in dvbsdffosd.c (thanks to Paul Menzel).

View File

@ -3,13 +3,13 @@
* *
* See the README file for copyright information and how to reach the author. * See the README file for copyright information and how to reach the author.
* *
* $Id: dvbsddevice.c 1.3 2010/01/30 10:05:42 kls Exp $ * $Id: dvbsddevice.c 1.4 2011/04/17 12:55:43 kls Exp $
*/ */
#include <vdr/plugin.h> #include <vdr/plugin.h>
#include "dvbsdffdevice.h" #include "dvbsdffdevice.h"
static const char *VERSION = "0.0.3"; static const char *VERSION = "0.0.4";
static const char *DESCRIPTION = "SD Full Featured DVB device"; static const char *DESCRIPTION = "SD Full Featured DVB device";
class cPluginDvbsddevice : public cPlugin { class cPluginDvbsddevice : public cPlugin {

View File

@ -3,7 +3,7 @@
* *
* See the README file for copyright information and how to reach the author. * See the README file for copyright information and how to reach the author.
* *
* $Id: dvbsdffosd.c 2.2 2010/09/12 11:29:00 kls Exp $ * $Id: dvbsdffosd.c 2.3 2011/04/17 12:55:09 kls Exp $
*/ */
#include "dvbsdffosd.h" #include "dvbsdffosd.h"
@ -73,8 +73,7 @@ void cDvbSdFfOsd::SetActive(bool On)
Flush(); Flush();
} }
else if (shown) { else if (shown) {
cBitmap *Bitmap; for (int i = 0; GetBitmap(i); i++) {
for (int i = 0; (Bitmap = GetBitmap(i)) != NULL; i++) {
Cmd(OSD_SetWindow, 0, i + 1); Cmd(OSD_SetWindow, 0, i + 1);
Cmd(OSD_Close); Cmd(OSD_Close);
} }
@ -108,8 +107,7 @@ eOsdError cDvbSdFfOsd::CanHandleAreas(const tArea *Areas, int NumAreas)
eOsdError cDvbSdFfOsd::SetAreas(const tArea *Areas, int NumAreas) eOsdError cDvbSdFfOsd::SetAreas(const tArea *Areas, int NumAreas)
{ {
if (shown) { if (shown) {
cBitmap *Bitmap; for (int i = 0; GetBitmap(i); i++) {
for (int i = 0; (Bitmap = GetBitmap(i)) != NULL; i++) {
Cmd(OSD_SetWindow, 0, i + 1); Cmd(OSD_SetWindow, 0, i + 1);
Cmd(OSD_Close); Cmd(OSD_Close);
} }