Ticket #4810: mythtv_SwapPIP.diff

File mythtv_SwapPIP.diff, 761 bytes (added by Shane Shrybman <gnome42@…>, 13 years ago)

SwapPIP restore current chain position

  • libs/libmythtv/tv_play.cpp

     
    39573957        activerecorder = recorder;
    39583958    }
    39593959    LiveTVChain *chain = (activenvp == nvp) ? tvchain : piptvchain;
    3960     ProgramInfo *pginfo = chain->GetProgramAt(-1);
     3960    ProgramInfo *pginfo = chain->GetProgramAt(chain->GetCurPos());
    39613961    if (pginfo)
    39623962    {
    39633963        SetCurrentlyPlaying(pginfo);
     
    40674067        TeardownPipPlayer();
    40684068    }
    40694069
    4070     ProgramInfo *pginfo = tvchain->GetProgramAt(-1);
     4070    ProgramInfo *pginfo = tvchain->GetProgramAt(tvchain->GetCurPos());
    40714071    if (pginfo)
    40724072    {
    40734073        SetCurrentlyPlaying(pginfo);