Ticket #7205: 0002-Populate-gen_psip-variable-of-FireWireDBOptions.patch

File 0002-Populate-gen_psip-variable-of-FireWireDBOptions.patch, 1.7 KB (added by Chase Douglas <chasedouglas@…>, 8 years ago)
  • mythtv/libs/libmythtv/tv_rec.cpp

    From 2b6ba99bc08481db8b25e50a89d066088577d28c Mon Sep 17 00:00:00 2001
    From: Chase Douglas <chase.douglas@canonical.com>
    Date: Tue, 2 Aug 2011 19:55:59 -0700
    Subject: [PATCH 2/4] Populate gen_psip variable of FireWireDBOptions
    
    ---
     mythtv/libs/libmythtv/tv_rec.cpp |    4 +++-
     mythtv/libs/libmythtv/tv_rec.h   |    3 ++-
     2 files changed, 5 insertions(+), 2 deletions(-)
    
    diff --git a/mythtv/libs/libmythtv/tv_rec.cpp b/mythtv/libs/libmythtv/tv_rec.cpp
    index f0daa86..b5f286c 100644
    a b bool TVRec::GetDevices(uint cardid, 
    15311531        ""
    15321532        "       dvb_on_demand,    dvb_tuning_delay,    dvb_eitscan,"
    15331533        ""
    1534         "       firewire_speed,   firewire_model,      firewire_connection "
     1534        "       firewire_speed,   firewire_model,      firewire_connection, "
     1535        "       firewire_gen_psip "
    15351536        ""
    15361537        "FROM capturecard "
    15371538        "WHERE cardid = :CARDID");
    bool TVRec::GetDevices(uint cardid, 
    15971598        firewire_opts.model = test;
    15981599
    15991600    firewire_opts.connection  = query.value(fireoff + 2).toUInt();
     1601    firewire_opts.gen_psip = query.value(fireoff + 3).toBool();
    16001602
    16011603    return true;
    16021604}
  • mythtv/libs/libmythtv/tv_rec.h

    diff --git a/mythtv/libs/libmythtv/tv_rec.h b/mythtv/libs/libmythtv/tv_rec.h
    index 8ed742b..13833dc 100644
    a b class DVBDBOptions 
    8383class FireWireDBOptions
    8484{
    8585  public:
    86     FireWireDBOptions() : speed(-1), connection(-1), model("") {;}
     86    FireWireDBOptions() : speed(-1), connection(-1), model(""), gen_psip(false) {;}
    8787
    8888    int speed;
    8989    int connection;
    9090    QString model;
     91    bool gen_psip;
    9192};
    9293
    9394class TuningRequest