Ticket #1492: block_certain_keypresses_when_watching_dvd.patch

File block_certain_keypresses_when_watching_dvd.patch, 2.7 KB (added by skamithi, 20 years ago)

if anyone has a better way of doing this. please share.

  • libs/libmythtv/tv_play.cpp

     
    22542254        QString action = actions[i];
    22552255        handled = true;
    22562256
    2257         if (action == "SKIPCOMMERCIAL")
     2257        if (action == "SKIPCOMMERCIAL" && !prbuffer->isDVD())
    22582258            DoSkipCommercials(1);
    2259         else if (action == "SKIPCOMMBACK")
     2259        else if (action == "SKIPCOMMBACK" && !prbuffer->isDVD())
    22602260            DoSkipCommercials(-1);
    2261         else if (action == "QUEUETRANSCODE")
     2261        else if (action == "QUEUETRANSCODE" && !prbuffer->isDVD())
    22622262            DoQueueTranscode("Default");
    22632263        else if (action == "QUEUETRANSCODE_AUTO")
    22642264            DoQueueTranscode("Autodetect");
     
    22722272            DoPlay();
    22732273        else if (action == "PAUSE")
    22742274            DoPause();
    2275         else if (action == "SPEEDINC")
     2275        else if (action == "SPEEDINC" && !prbuffer->InDVDMenuOrStillFrame())
    22762276            ChangeSpeed(1);
    2277         else if (action == "SPEEDDEC")
     2277        else if (action == "SPEEDDEC" && !prbuffer->InDVDMenuOrStillFrame())
    22782278            ChangeSpeed(-1);
    22792279        else if (action == "ADJUSTSTRETCH")
    22802280            ChangeTimeStretch(0);   // just display
     
    24252425                DoSeek(jumptime * 60, tr("Jump Ahead"));
    24262426            }
    24272427        }
    2428         else if (action == "JUMPBKMRK")
     2428        else if (action == "JUMPBKMRK" && !prbuffer->isDVD())
    24292429        {
    24302430            int bookmark = activenvp->GetBookmark();
    24312431            if (bookmark > frameRate)
     
    27502750                        nvp->ActivateDVDButton();
    27512751                }
    27522752            }
    2753             else if (action == "DELETE")
     2753            else if (action == "DELETE" && !prbuffer->isDVD())
    27542754            {
    27552755                NormalSpeed();
    27562756                StopFFRew();
     
    27622762            }
    27632763            else if (action == "JUMPTODVDROOTMENU")
    27642764                nvp->GoToDVDMenu("menu");
    2765             else if (action == "GUIDE")
     2765            else if (action == "GUIDE" && !prbuffer->isDVD())
    27662766                EditSchedule(kScheduleProgramGuide);
    2767             else if (action == "FINDER")
     2767            else if (action == "FINDER" && !prbuffer->isDVD())
    27682768                EditSchedule(kScheduleProgramFinder);
    2769             else if (action == "TOGGLEEDIT")
     2769            else if (action == "TOGGLEEDIT" && !prbuffer->isDVD())
    27702770                StartProgramEditMode();
    2771             else if (action == "TOGGLEBROWSE")
     2771            else if (action == "TOGGLEBROWSE" && !prbuffer->isDVD())
    27722772                ShowOSDTreeMenu();
    27732773            else if (action == "CHANNELUP")
    27742774            {