#! /bin/sh /usr/share/dpatch/dpatch-run ## 91_powermate-0.0.3-1.3.38.dpatch by Thomas Günther ## http://toms-cafe.de/vdr/download/powermate-0.0.3-1.3.38.diff ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Changes for VDR >= 1.3.38. @DPATCH@ --- powermate-0.0.3/powermate.c +++ powermate-0.0.3/powermate.c @@ -253,9 +253,15 @@ cRemote::Put(key); } +#if VDRVERSNUM >= 10338 +void cPowerMate::Replaying(const cControl *Control, const char *Name, const char *FileName, bool On) +{ + if (On) +#else void cPowerMate::Replaying(const cControl *Control, const char *Name) { if (Name) +#endif { context = kContextReplay; } --- powermate-0.0.3/powermate.h +++ powermate-0.0.3/powermate.h @@ -42,7 +42,11 @@ virtual ~cPowerMate(); void SetBrightness(int brightness); +#if VDRVERSNUM >= 10338 + virtual void Replaying(const cControl *Control, const char *Name, const char *FileName, bool On); +#else virtual void Replaying(const cControl *Control, const char *Name); +#endif virtual void OsdClear(void); virtual void OsdTitle(const char *Title); virtual void OsdHelpKeys(const char *Red, const char *Green, const char *Yellow, const char *Blue);