aboutsummaryrefslogtreecommitdiff
path: root/multimedia/vdr-plugin-xvdr
diff options
context:
space:
mode:
authorJuergen Lock <nox@FreeBSD.org>2012-04-21 14:10:58 +0000
committerJuergen Lock <nox@FreeBSD.org>2012-04-21 14:10:58 +0000
commit21694da2c566eaa9c10c6ef28211ff5dcc64fc0b (patch)
treeaddbbf4b5bdb1599aaa2de3e5468c3e5086cf6ac /multimedia/vdr-plugin-xvdr
parent81c24ded0d6dc41a98692d88f643711724fd25c1 (diff)
downloadports-21694da2c566eaa9c10c6ef28211ff5dcc64fc0b.tar.gz
ports-21694da2c566eaa9c10c6ef28211ff5dcc64fc0b.zip
Notes
Diffstat (limited to 'multimedia/vdr-plugin-xvdr')
-rw-r--r--multimedia/vdr-plugin-xvdr/Makefile2
-rw-r--r--multimedia/vdr-plugin-xvdr/files/patch-rofafor84
-rw-r--r--multimedia/vdr-plugin-xvdr/pkg-plist2
3 files changed, 86 insertions, 2 deletions
diff --git a/multimedia/vdr-plugin-xvdr/Makefile b/multimedia/vdr-plugin-xvdr/Makefile
index 3008b01167f9..a9ce53f72148 100644
--- a/multimedia/vdr-plugin-xvdr/Makefile
+++ b/multimedia/vdr-plugin-xvdr/Makefile
@@ -7,7 +7,7 @@
PORTNAME= vdr-plugin-xvdr
PORTVERSION= 0.9.5
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= multimedia
MASTER_SITES= LOCAL/nox/
DISTNAME= pipelka-${PORTNAME}-xvdr-${PORTVERSION}-0-g${GITHASH}
diff --git a/multimedia/vdr-plugin-xvdr/files/patch-rofafor b/multimedia/vdr-plugin-xvdr/files/patch-rofafor
new file mode 100644
index 000000000000..059881585f56
--- /dev/null
+++ b/multimedia/vdr-plugin-xvdr/files/patch-rofafor
@@ -0,0 +1,84 @@
+diff --git a/src/live/livepatfilter.c b/src/live/livepatfilter.c
+index e811c8c..f1b94fd 100644
+--- a/src/live/livepatfilter.c
++++ b/src/live/livepatfilter.c
+@@ -447,7 +447,7 @@ void cLivePatFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Le
+ }
+ }
+
+- m_Streamer->m_Receiver = new cLiveReceiver(m_Streamer, m_Channel->GetChannelID(), m_Streamer->m_Priority, m_Streamer->m_Pids);
++ m_Streamer->m_Receiver = new cLiveReceiver(m_Streamer, m_Channel, m_Streamer->m_Priority, m_Streamer->m_Pids);
+ m_Streamer->m_Device->AttachReceiver(m_Streamer->m_Receiver);
+ INFOLOG("Currently unknown new streams found, requesting stream change");
+ m_Streamer->RequestStreamChange();
+diff --git a/src/live/livereceiver.c b/src/live/livereceiver.c
+index 34f5ba8..528f65a 100644
+--- a/src/live/livereceiver.c
++++ b/src/live/livereceiver.c
+@@ -27,10 +27,12 @@
+ #include "livereceiver.h"
+ #include "livestreamer.h"
+
+-cLiveReceiver::cLiveReceiver(cLiveStreamer *Streamer, tChannelID ChannelID, int Priority, const int *Pids)
+- : cReceiver(ChannelID, Priority, 0, Pids)
++cLiveReceiver::cLiveReceiver(cLiveStreamer *Streamer, const cChannel *Channel, int Priority, const int *Pids)
++ : cReceiver(Channel, Priority)
+ , m_Streamer(Streamer)
+ {
++ AddPid(0);
++ AddPids(Pids);
+ DEBUGLOG("Starting live receiver");
+ }
+
+diff --git a/src/live/livereceiver.h b/src/live/livereceiver.h
+index 8d23522..2ccd8bf 100644
+--- a/src/live/livereceiver.h
++++ b/src/live/livereceiver.h
+@@ -42,7 +42,7 @@ protected:
+ virtual void Receive(uchar *Data, int Length);
+
+ public:
+- cLiveReceiver(cLiveStreamer *Streamer, tChannelID ChannelID, int Priority, const int *Pids);
++ cLiveReceiver(cLiveStreamer *Streamer, const cChannel *Channel, int Priority, const int *Pids);
+ virtual ~cLiveReceiver();
+ };
+
+diff --git a/src/live/livestreamer.c b/src/live/livestreamer.c
+index a2d6826..6bafc02 100644
+--- a/src/live/livestreamer.c
++++ b/src/live/livestreamer.c
+@@ -406,7 +406,7 @@ bool cLiveStreamer::StreamChannel(const cChannel *channel, int priority, cxSocke
+ if (m_NumStreams > 0 && m_Socket)
+ {
+ DEBUGLOG("Creating new live Receiver");
+- m_Receiver = new cLiveReceiver(this, m_Channel->GetChannelID(), m_Priority, m_Pids);
++ m_Receiver = new cLiveReceiver(this, m_Channel, m_Priority, m_Pids);
+ m_PatFilter = new cLivePatFilter(this, m_Channel);
+ m_Device->AttachReceiver(m_Receiver);
+ m_Device->AttachFilter(m_PatFilter);
+diff --git a/src/xvdr/xvdrclient.c b/src/xvdr/xvdrclient.c
+index cea1af2..931ea61 100644
+--- a/src/xvdr/xvdrclient.c
++++ b/src/xvdr/xvdrclient.c
+@@ -1572,7 +1572,7 @@ bool cXVDRClient::processRECORDINGS_GetList() /* OPCODE 102 */
+ }
+ else
+ {
+- recordingStart = recording->start;
++ recordingStart = recording->Start();
+ }
+ }
+ DEBUGLOG("GRI: RC: recordingStart=%lu recordingDuration=%i", recordingStart, recordingDuration);
+@@ -1584,10 +1584,10 @@ bool cXVDRClient::processRECORDINGS_GetList() /* OPCODE 102 */
+ m_resp->add_U32(recordingDuration);
+
+ // priority
+- m_resp->add_U32(recording->priority);
++ m_resp->add_U32(recording->Priority());
+
+ // lifetime
+- m_resp->add_U32(recording->lifetime);
++ m_resp->add_U32(recording->Lifetime());
+
+ // channel_name
+ m_resp->add_String(recording->Info()->ChannelName() ? m_toUTF8.Convert(recording->Info()->ChannelName()) : "");
diff --git a/multimedia/vdr-plugin-xvdr/pkg-plist b/multimedia/vdr-plugin-xvdr/pkg-plist
index a156e6b8a3be..b159314cf7bb 100644
--- a/multimedia/vdr-plugin-xvdr/pkg-plist
+++ b/multimedia/vdr-plugin-xvdr/pkg-plist
@@ -1,4 +1,4 @@
-lib/vdr/libvdr-xvdr.so.1.7.22
+lib/vdr/libvdr-xvdr.so.%%APIVERSION%%
@unexec if cmp -s %D/etc/vdr/plugins/xvdr/allowed_hosts.conf.sample %D/etc/vdr/plugins/xvdr/allowed_hosts.conf; then rm -f %D/etc/vdr/plugins/xvdr/allowed_hosts.conf; fi
etc/vdr/plugins/xvdr/allowed_hosts.conf.sample
@exec if [ ! -f %D/etc/vdr/plugins/xvdr/allowed_hosts.conf ] ; then cp -p %D/%F %B/allowed_hosts.conf; fi