freebsd-ports/multimedia/vdr-plugin-upnp/files/patch-receiver-livereceiver.cpp
Juergen Lock 06a1a754bf - Update multimedia/vdr and multimedia/vdr-plugins to 1.7.28 .
- Update xineliboutput XKeySym.Pause key in example remote.conf.
  ("space" instead of "Space")
- Add multimedia/vdr-plugin-extrecmenu 1.2.2 to vdr-plugins metaport.
- Update multimedia/vdr-plugin-skinenigmang to 0.1.2s20120606 git snapshot.
- Update www/vdr-plugin-live to 0.2.0s20120325 git snapshot.
- Bump PORTREVISION for all other plugins and add api fixes where necessary.
- Add HISTORY to PORTDOCS for most plugins. (those that have it)
- Remove shlib major versions from LIB_DEPENDS to pet portlint.
2012-06-19 18:42:12 +00:00

29 lines
982 B
C++

--- 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
+}