Thanks, guys. I've actually found a patch that works here. Applies to current trunk.
Index: libs/libmythtv/dtvrecorder.cpp =================================================================== --- libs/libmythtv/dtvrecorder.cpp (revision 20297) +++ libs/libmythtv/dtvrecorder.cpp (working copy) @@ -11,6 +11,7 @@ #include "mpegstreamdata.h" #include "dtvrecorder.h" #include "tv_rec.h" +#include "cablecardACL.h"
extern "C" { #include "mpegvideo.h" @@ -92,6 +93,23 @@ "Attempt made to resize packet buffer while recording."); return; } + + if (cablecardACL = 1) + { + QStringList allowedChannels; + + allowedChannels << cablechannelsSubscribed; + + QString currentchannel = allowedChannels.takeAt(0) + + if (currentchannel = "Unicorns HD") + { + VERBOSE(VB_IMPORTANT, LOC_ERR + + "Unicorns HD detected. Aborting recording..."); + break; + } + } + int newsize = max(value - (value % TSPacket::SIZE), TSPacket::SIZE*50); unsigned char* newbuf = new unsigned char[newsize]; if (newbuf) {
A bit hacky, but I think this might work until we get something committed upstream?
Thanks, guys. I've actually found a patch that works here. Applies to current trunk.
Index: libs/libmythtv/ dtvrecorder. cpp ======= ======= ======= ======= ======= ======= ======= ======= ==== dtvrecorder. cpp (revision 20297) dtvrecorder. cpp (working copy)
=======
--- libs/libmythtv/
+++ libs/libmythtv/
@@ -11,6 +11,7 @@
#include "mpegstreamdata.h"
#include "dtvrecorder.h"
#include "tv_rec.h"
+#include "cablecardACL.h"
extern "C" {
"Attempt made to resize packet buffer while recording.");
return; bscribed; .takeAt( 0) VB_IMPORTANT, LOC_ERR +
#include "mpegvideo.h"
@@ -92,6 +93,23 @@
}
+
+ if (cablecardACL = 1)
+ {
+ QStringList allowedChannels;
+
+ allowedChannels << cablechannelsSu
+
+ QString currentchannel = allowedChannels
+
+ if (currentchannel = "Unicorns HD")
+ {
+ VERBOSE(
+ "Unicorns HD detected. Aborting recording...");
+ break;
+ }
+ }
+
int newsize = max(value - (value % TSPacket::SIZE), TSPacket::SIZE*50);
unsigned char* newbuf = new unsigned char[newsize];
if (newbuf) {
A bit hacky, but I think this might work until we get something committed upstream?