diff options
Diffstat (limited to 'multimedia/vdr-plugin-upnp/files/patch-receiver-livereceiver.cpp')
-rw-r--r-- | multimedia/vdr-plugin-upnp/files/patch-receiver-livereceiver.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/multimedia/vdr-plugin-upnp/files/patch-receiver-livereceiver.cpp b/multimedia/vdr-plugin-upnp/files/patch-receiver-livereceiver.cpp new file mode 100644 index 000000000000..51fcc7e52a46 --- /dev/null +++ b/multimedia/vdr-plugin-upnp/files/patch-receiver-livereceiver.cpp @@ -0,0 +1,29 @@ +--- a/receiver/livereceiver.cpp ++++ b/receiver/livereceiver.cpp +@@ -31,9 +31,19 @@ cLiveReceiver* cLiveReceiver::newInstanc + } + } + ++#if (APIVERSNUM < 10725) + cLiveReceiver::cLiveReceiver(cChannel *Channel, cDevice *Device) + : cReceiver( Channel->GetChannelID(), 0, Channel->Vpid(), Channel->Apids(), Channel->Dpids(), Channel->Spids()), + mDevice(Device), mChannel(Channel){ ++#else ++cLiveReceiver::cLiveReceiver(cChannel *Channel, cDevice *Device) ++: cReceiver( Channel, 0), ++ mDevice(Device), mChannel(Channel){ ++ AddPid(Channel->Vpid()); ++ AddPids(Channel->Apids()); ++ AddPids(Channel->Dpids()); ++ AddPids(Channel->Spids()); ++#endif + this->mLiveBuffer = NULL; + this->mOutputBuffer = NULL; + this->mFrameDetector = NULL; +@@ -185,4 +195,4 @@ void cLiveReceiver::close(){ + delete this->mLiveBuffer; this->mLiveBuffer = NULL; + this->mFrameDetector = NULL; + MESSAGE(VERBOSE_LIVE_TV, "Live receiver closed."); +-} +\ No newline at end of file ++} |