#! /bin/sh /usr/share/dpatch/dpatch-run ## 90_bitstreamout-0.84-1.3.38.dpatch by Thomas Günther ## http://toms-cafe.de/vdr/download/bitstreamout-0.84-1.3.38.diff ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Changes for VDR >= 1.3.38. @DPATCH@ --- bitstreamout-0.84/channel.c +++ bitstreamout-0.84/channel.c @@ -1050,7 +1050,11 @@ return; } +#if VDRVERSNUM >= 10338 +void cChannelOutSPDif::Recording(const cDevice *Device, const char *Name, const char *FileName, bool On) +#else void cChannelOutSPDif::Recording(const cDevice *Device, const char *Name) +#endif { cDevice *PrimaryDevice = cDevice::PrimaryDevice(); @@ -1060,7 +1064,11 @@ if (Device != PrimaryDevice) goto out; +#if VDRVERSNUM >= 10338 + recording = On; +#else recording = (Name != NULL); +#endif if (!recording) goto out; @@ -1073,9 +1081,15 @@ IfNeededMuteSPDIF(); // On close the S/P-DIF is not muted anymore } +#if VDRVERSNUM >= 10338 +void cChannelOutSPDif::Replaying(const cControl *Control, const char *Name, const char *FileName, bool On) +{ + replaying = On; +#else void cChannelOutSPDif::Replaying(const cControl *Control, const char *Name) { replaying = (Name != NULL); +#endif #if defined(VDRVERSNUM) && VDRVERSNUM <= 10317 Player = (static_cast(Control))->Player(); --- bitstreamout-0.84/channel.h +++ bitstreamout-0.84/channel.h @@ -166,8 +166,13 @@ virtual void Action(void); virtual void Activate(bool on); virtual void ChannelSwitch(const cDevice *Device, int ChannelNumber); +#if VDRVERSNUM >= 10338 + virtual void Recording(const cDevice *Device, const char *Name, const char *FileName, bool On); + virtual void Replaying(const cControl *Control, const char *Name, const char *FileName, bool On); +#else virtual void Recording(const cDevice *Device, const char *Name); virtual void Replaying(const cControl *Control, const char *Name); +#endif public: cChannelOutSPDif(spdif &dev, ctrl_t &up, cBounce * bPtr, const char *script); ~cChannelOutSPDif(void);