Ticket #4328: hdhr.myth.v0.25pre-2256-g4d4eaa8.mythtv.patch

File hdhr.myth.v0.25pre-2256-g4d4eaa8.mythtv.patch, 4.1 KB (added by gnassas@…, 14 years ago)

Current as of June 13

  • mythtv/libs/libmythtv/dtvchannel.cpp

    diff --git a/mythtv/libs/libmythtv/dtvchannel.cpp b/mythtv/libs/libmythtv/dtvchannel.cpp
    old mode 100644
    new mode 100755
    index 3bbd499..1977c7a
    a b bool DTVChannel::SetChannelByString(const QString &channum) 
    279279    }
    280280
    281281    bool ok = true;
    282     if ((*it)->externalChanger.isEmpty())
     282    if ((*it)->name.contains("composite", Qt::CaseInsensitive) ||
     283        (*it)->name.contains("s-video", Qt::CaseInsensitive))
    283284    {
    284         if ((*it)->name.contains("composite", Qt::CaseInsensitive) ||
    285             (*it)->name.contains("s-video", Qt::CaseInsensitive))
     285        if ((*it)->externalChanger.isEmpty())
    286286        {
    287287            VERBOSE(VB_GENERAL, LOC_WARN + "You have not set "
    288288                    "an external channel changing"
    289289                    "\n\t\t\tscript for a composite or s-video "
    290290                    "input. Channel changing will do nothing.");
    291291        }
    292         else if (isFrequency && Tune(frequency, ""))
     292    }
     293    else if (isFrequency && Tune(frequency, ""))
     294    {
     295    }
     296    else if (isFrequency)
     297    {
     298        // Initialize basic the tuning parameters
     299        DTVMultiplex tuning;
     300        if (!mplexid || !tuning.FillFromDB(tunerType, mplexid))
    293301        {
     302            VERBOSE(VB_IMPORTANT, loc_err +
     303                    "Failed to initialize multiplex options");
     304            ok = false;
    294305        }
    295         else if (isFrequency)
     306        else
    296307        {
    297             // Initialize basic the tuning parameters
    298             DTVMultiplex tuning;
    299             if (!mplexid || !tuning.FillFromDB(tunerType, mplexid))
    300             {
    301                 VERBOSE(VB_IMPORTANT, loc_err +
    302                         "Failed to initialize multiplex options");
    303                 ok = false;
    304             }
    305             else
    306             {
    307                 // Try to fix any problems with the multiplex
    308                 CheckOptions(tuning);
     308            // Try to fix any problems with the multiplex
     309            CheckOptions(tuning);
    309310
    310                 // Tune to proper multiplex
    311                 if (!Tune(tuning, (*it)->name))
    312                 {
    313                     VERBOSE(VB_IMPORTANT, loc_err + "Tuning to frequency.");
     311            // Tune to proper multiplex
     312            if (!Tune(tuning, (*it)->name))
     313            {
     314                VERBOSE(VB_IMPORTANT, loc_err + "Tuning to frequency.");
    314315
    315                     ClearDTVInfo();
    316                     ok = false;
    317                 }
     316                ClearDTVInfo();
     317                ok = false;
    318318            }
    319319        }
    320         else
    321         {
    322             ok = Tune(freqid, finetune);
    323         }
     320    }
     321    else
     322    {
     323        ok = Tune(freqid, finetune);
    324324    }
    325325
    326326    VERBOSE(VB_CHANNEL, loc + " " + ((ok) ? "success" : "failure"));
  • mythtv/libs/libmythtv/hdhrchannel.h

    diff --git a/mythtv/libs/libmythtv/hdhrchannel.cpp b/mythtv/libs/libmythtv/hdhrchannel.cpp
    old mode 100644
    new mode 100755
    diff --git a/mythtv/libs/libmythtv/hdhrchannel.h b/mythtv/libs/libmythtv/hdhrchannel.h
    old mode 100644
    new mode 100755
    index 85f801c..937e267
    a b class HDHRChannel : public DTVChannel 
    3737        { return _tuner_types; }
    3838    virtual bool IsMaster(void) const
    3939        { return _master == NULL; }
     40    virtual bool IsExternalChannelChangeSupported(void) { return true; }
    4041
    4142    // Sets
    4243    virtual bool SetChannelByString(const QString &channum);
  • mythtv/libs/libmythtv/hdhrsignalmonitor.cpp

    diff --git a/mythtv/libs/libmythtv/hdhrsignalmonitor.cpp b/mythtv/libs/libmythtv/hdhrsignalmonitor.cpp
    old mode 100644
    new mode 100755
    index 0b4ec63..2f3b9ac
    a b void HDHRSignalMonitor::UpdateValues(void) 
    9292    if (!running || exit)
    9393        return;
    9494
     95    SignalMonitor::UpdateValues();
     96
     97    {
     98        QMutexLocker locker(&statusLock);
     99        if (!scriptStatus.IsGood())
     100            return;
     101    }
     102
    95103    if (streamHandlerStarted)
    96104    {
    97105        EmitStatus();