Ticket #3618: 3618-v1.patch

File 3618-v1.patch, 1.7 KB (added by danielk, 15 years ago)

updated patch

  • libs/libmythtv/NuppelVideoPlayer.cpp

     
    32993299    VERBOSE(VB_PLAYBACK, "JumpToProgram(void)");
    33003300    bool discontinuity = false, newtype = false;
    33013301    int newid = -1;
     3302    long long nextpos = player_ctx->tvchain->GetJumpPos();
    33023303    ProgramInfo *pginfo = player_ctx->tvchain->GetSwitchProgram(
    33033304        discontinuity, newtype, newid);
    33043305    if (!pginfo)
    33053306        return;
    33063307
    3307     long long nextpos = player_ctx->tvchain->GetJumpPos();
    33083308    bool newIsDummy = player_ctx->tvchain->GetCardType(newid) == "DUMMY";
    33093309
    33103310    SetPlayingInfo(*pginfo);
  • libs/libmythtv/livetvchain.cpp

     
    376376    QMutexLocker lock(&m_lock);
    377377
    378378    if (m_switchid < 0 || m_curpos == m_switchid)
     379    {
     380        ClearSwitch();
    379381        return NULL;
     382    }
    380383
    381384    LiveTVChainEntry oldentry, entry;
    382385    GetEntryAt(m_curpos, oldentry);
     
    397400    }
    398401
    399402    if (!pginfo)
     403    {
     404        ClearSwitch();
    400405        return NULL;
     406    }
    401407
    402408    // Skip dummy recordings, if possible.
    403409    if (entry.cardtype == "DUMMY")
     
    411417        delete pginfo;
    412418        pginfo = EntryToProgram(entry);
    413419        if (!pginfo)
     420        {
     421            ClearSwitch();
    414422            return NULL;
     423        }
    415424    }
    416425
    417426    discont = true;
     
    432441    }
    433442
    434443    newid = m_switchid;
    435     m_switchid = -1;
    436444
     445    ClearSwitch();
     446
    437447    return pginfo;
    438448}
    439449