From 79f8c5f38e0a24a5f30e0a29fb5c18f03c85c203 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 17 Apr 2011 12:57:29 +0200 Subject: [PATCH] Removed an obsolete local variable in dvbsdffosd.c --- CONTRIBUTORS | 1 + HISTORY | 1 + PLUGINS/src/dvbsddevice/HISTORY | 4 ++++ PLUGINS/src/dvbsddevice/dvbsddevice.c | 4 ++-- PLUGINS/src/dvbsddevice/dvbsdffosd.c | 8 +++----- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index b4b903d1..08945a3e 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -2630,6 +2630,7 @@ Paul Menzel for making include paths not be overwritten in the Makefile for adding LDFLAGS to the linker calls in the Makefiles for reporting a possible memory leak in the "pictures" plugin + for removing an obsolete local variable in dvbsdffosd.c Radek Stastny for translating OSD texts to the Czech language diff --git a/HISTORY b/HISTORY index 4662c06d..375b8966 100644 --- a/HISTORY +++ b/HISTORY @@ -6598,3 +6598,4 @@ Video Disk Recorder Revision History cRecordingInfo or cRecording (reported by Mika Laitio). - The dvbhddevice plugin is now part of the VDR distribution archive (thanks to Andreas Regel). +- Removed an obsolete local variable in dvbsdffosd.c (thanks to Paul Menzel). diff --git a/PLUGINS/src/dvbsddevice/HISTORY b/PLUGINS/src/dvbsddevice/HISTORY index 0d1047b9..9672f6fc 100644 --- a/PLUGINS/src/dvbsddevice/HISTORY +++ b/PLUGINS/src/dvbsddevice/HISTORY @@ -15,3 +15,7 @@ VDR Plugin 'dvbsddevice' Revision History - The PCR pid is now recorded for channels where this is different from the video PID. + +2011-04-17: Version 0.0.4 + +- Removed an obsolete local variable in dvbsdffosd.c (thanks to Paul Menzel). diff --git a/PLUGINS/src/dvbsddevice/dvbsddevice.c b/PLUGINS/src/dvbsddevice/dvbsddevice.c index cc48b283..6f042d8b 100644 --- a/PLUGINS/src/dvbsddevice/dvbsddevice.c +++ b/PLUGINS/src/dvbsddevice/dvbsddevice.c @@ -3,13 +3,13 @@ * * 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 #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"; class cPluginDvbsddevice : public cPlugin { diff --git a/PLUGINS/src/dvbsddevice/dvbsdffosd.c b/PLUGINS/src/dvbsddevice/dvbsdffosd.c index 039999aa..46c65e05 100644 --- a/PLUGINS/src/dvbsddevice/dvbsdffosd.c +++ b/PLUGINS/src/dvbsddevice/dvbsdffosd.c @@ -3,7 +3,7 @@ * * 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" @@ -73,8 +73,7 @@ void cDvbSdFfOsd::SetActive(bool On) Flush(); } else if (shown) { - cBitmap *Bitmap; - for (int i = 0; (Bitmap = GetBitmap(i)) != NULL; i++) { + for (int i = 0; GetBitmap(i); i++) { Cmd(OSD_SetWindow, 0, i + 1); Cmd(OSD_Close); } @@ -108,8 +107,7 @@ eOsdError cDvbSdFfOsd::CanHandleAreas(const tArea *Areas, int NumAreas) eOsdError cDvbSdFfOsd::SetAreas(const tArea *Areas, int NumAreas) { if (shown) { - cBitmap *Bitmap; - for (int i = 0; (Bitmap = GetBitmap(i)) != NULL; i++) { + for (int i = 0; GetBitmap(i); i++) { Cmd(OSD_SetWindow, 0, i + 1); Cmd(OSD_Close); }