Ticket #5866: 5866-livetvchain-v1.patch

File 5866-livetvchain-v1.patch, 1.8 KB (added by danielk, 11 years ago)

Just an add on, LiveTVChain should treat HDPVR streams like it does DVB streams..

  • libs/libmythtv/cardutil.h

     
    9595            (rawtype != "HDHOMERUN") && (rawtype != "FREEBOX");
    9696    }
    9797
     98    static bool         IsChannelChangeDiscontinuous(const QString &rawtype)
     99    {
     100        return !IsEncoder(rawtype) || (rawtype == "HDPVR");
     101    }
     102
    98103    static bool         IsUnscanable(const QString &rawtype)
    99104    {
    100105        return
  • libs/libmythtv/livetvchain.cpp

     
    11#include "livetvchain.h"
    2 #include "libmyth/mythcontext.h"
    3 #include "libmythdb/mythdb.h"
    4 #include "libmythdb/mythverbose.h"
     2#include "mythcontext.h"
     3#include "mythdb.h"
     4#include "mythverbose.h"
    55#include "programinfo.h"
    66#include "mythsocket.h"
     7#include "cardutil.h"
    78
    89#define LOC QString("LiveTVChain(%1): ").arg(m_id)
    910
     
    418419    if (m_curpos == m_switchid - 1)
    419420        discont = entry.discontinuity;
    420421
    421     newtype = (oldentry.cardtype !=  entry.cardtype);
     422    newtype = (oldentry.cardtype != entry.cardtype);
    422423
     424    // Some cards can change their streams dramatically on a channel change...
    423425    if (discont)
    424     {
    425         // Some cards can change their streams
    426         // dramatically on a channel change...
    427         newtype |= entry.cardtype == "DVB";
    428         newtype |= entry.cardtype == "HDTV";
    429         newtype |= entry.cardtype == "FIREWIRE";
    430         newtype |= entry.cardtype == "DBOX2";
    431         newtype |= entry.cardtype == "HDHOMERUN";
    432     }
     426        newtype |= CardUtil::IsChannelChangeDiscontinuous(entry.cardtype);
    433427
    434428    newid = m_switchid;
    435429    m_switchid = -1;