Ticket #7205: 0004-Add-checkbox-for-firewire-PSIP-generation.patch

File 0004-Add-checkbox-for-firewire-PSIP-generation.patch, 1.7 KB (added by Chase Douglas <chasedouglas@…>, 8 years ago)
  • mythtv/libs/libmythtv/videosource.cpp

    From 1c5b16b417dc2444c29fb2fb510ddec4b75952d4 Mon Sep 17 00:00:00 2001
    From: Chase Douglas <chase.douglas@canonical.com>
    Date: Tue, 2 Aug 2011 22:02:20 -0700
    Subject: [PATCH 4/4] Add checkbox for firewire PSIP generation
    
    ---
     mythtv/libs/libmythtv/videosource.cpp |   17 +++++++++++++++++
     1 files changed, 17 insertions(+), 0 deletions(-)
    
    diff --git a/mythtv/libs/libmythtv/videosource.cpp b/mythtv/libs/libmythtv/videosource.cpp
    index 4c69843..aa5a080 100644
    a b class FirewireSpeed : public ComboBoxSetting, public CaptureCardDBStorage 
    12551255    }
    12561256};
    12571257
     1258class FirewireGenPSIP : public CheckBoxSetting, public CaptureCardDBStorage
     1259{
     1260  public:
     1261    FirewireGenPSIP(const CaptureCard &parent) :
     1262        CheckBoxSetting(this),
     1263        CaptureCardDBStorage(this, parent, "firewire_gen_psip")
     1264    {
     1265        setLabel(QObject::tr("Generate PSI Packets"));
     1266        setValue(false);
     1267        setHelpText(
     1268            QObject::tr(
     1269                "Some cable boxes do not emit PSI packets, resulting in signal "
     1270                "lock failure. MythTV can attempt to generate these packets."));
     1271    };
     1272};
     1273
    12581274class FirewireConfigurationGroup : public VerticalConfigurationGroup
    12591275{
    12601276  public:
    class FirewireConfigurationGroup : public VerticalConfigurationGroup 
    12791295        addChild(new SignalTimeout(parent, 2000, 1000));
    12801296        addChild(new ChannelTimeout(parent, 9000, 1750));
    12811297        addChild(new SingleCardInput(parent));
     1298        addChild(new FirewireGenPSIP(parent));
    12821299
    12831300        model->SetGUID(dev->getValue());
    12841301        desc->SetGUID(dev->getValue());