#! /bin/sh /usr/share/dpatch/dpatch-run ## 91_graphtft-0.0.16-1.5.0.dpatch by Thomas Günther ## http://toms-cafe.de/vdr/download/graphtft-0.0.16-1.5.0.diff ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Changes for VDR >= 1.5.0. @DPATCH@ --- graphtft-0.0.16/display.c +++ graphtft-0.0.16/display.c @@ -323,7 +323,11 @@ if (newChan != NULL) { _chan = newChan; +#if APIVERSNUM >= 10500 + _dev = cDevice::GetDevice(_chan, 1, false); +#else _dev = cDevice::GetDevice(_chan, 1); +#endif PbpStart(); } } @@ -381,7 +385,11 @@ _chan = cDevice::CurrentChannel() != 0 ? Channels.GetByNumber(cDevice::CurrentChannel()) : 0; if (_chan) +#if APIVERSNUM >= 10500 + _dev = cDevice::GetDevice(_chan, 1, false); +#else _dev = cDevice::GetDevice(_chan, 1); +#endif //_dev = cDevice::ActualDevice(); } --- graphtft-0.0.16/transfer.c +++ graphtft-0.0.16/transfer.c @@ -15,7 +15,11 @@ #include cGraphTFTTransfer::cGraphTFTTransfer(Renderer* renderer, const cChannel* Channel) +#if APIVERSNUM >= 10500 + : cReceiver(Channel->GetChannelID(), 0, +#else : cReceiver(Channel->Ca(), 0, +#endif Channel->Vpid(), Channel->Apids(), Channel->Dpids()),