#! /bin/sh /usr/share/dpatch/dpatch-run ## 91_statusleds-0.2-1.3.38.dpatch by Thomas Günther ## http://toms-cafe.de/vdr/download/statusleds-0.2-1.3.38.diff ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Changes for VDR >= 1.3.38. @DPATCH@ --- statusleds-0.2/statusleds.c +++ statusleds-0.2/statusleds.c @@ -28,7 +28,11 @@ public: cStatusUpdate(); ~cStatusUpdate(); +#if VDRVERSNUM >= 10338 + virtual void Recording(const cDevice *Device, const char *Name, const char *FileName, bool On); +#else virtual void Recording(const cDevice *Device, const char *Name); +#endif void Stop(); protected: virtual void Action(void); @@ -481,9 +485,15 @@ oStatusUpdate->Cancel((iOnDuration + iOnPauseDuration + iOffDuration) * 10); } +#if VDRVERSNUM >= 10338 +void cStatusUpdate::Recording(const cDevice *Device, const char *Name, const char *FileName, bool On) +{ + if (On) +#else void cStatusUpdate::Recording(const cDevice *Device, const char *Name) { if (Name) +#endif iRecordings++; else iRecordings--;