Ticket #6147: dvd_screensaver_fix.diff

File dvd_screensaver_fix.diff, 970 bytes (added by skamithi, 17 years ago)
  • libs/libmythtv/DVDRingBuffer.cpp

    diff --git a/libs/libmythtv/DVDRingBuffer.cpp b/libs/libmythtv/DVDRingBuffer.cpp
    index 7c87b44..941e6f5 100644
    a b int DVDRingBufferPriv::safe_read(void *data, unsigned sz)  
    337337                cellid = 0;
    338338                cellRepeated = false;
    339339                menupktpts = 0;
    340                 if (cellHasStillFrame)
    341                     GetMythUI()->DisableScreensaver();
    342340                InStillFrame(false);
    343341
    344342                if (parent && IsInMenu())
    void DVDRingBufferPriv::InStillFrame(bool change)  
    11331131    QString str;
    11341132   
    11351133    if (change)
     1134    {
    11361135        str = "Entering DVD Still Frame";
    1137     else
     1136        GetMythUI()->RestoreScreensaver();
     1137    }
     1138    else
     1139    {
    11381140        str = "Leaving DVD Still Frame";
    1139    
     1141        GetMythUI()->DisableScreensaver();
     1142    }
    11401143    if (cellHasStillFrame != change)
    11411144        VERBOSE(VB_PLAYBACK, str);
    11421145