Comment 2 for bug 353559

Revision history for this message
Robert McNamara (robert-mcnamara) wrote :

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?