Ticket #6147: dvd_screensaver_fix3.diff

File dvd_screensaver_fix3.diff, 2.2 KB (added by skamithi, 17 years ago)

slight modification of user attached patch (fix2)

  • libs/libmythtv/DVDRingBuffer.cpp

    diff --git a/libs/libmythtv/DVDRingBuffer.cpp b/libs/libmythtv/DVDRingBuffer.cpp
    index 7c87b44..3bac34a 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
    344                 if (parent && IsInMenu())
     342                if (IsInMenu())
    345343                {
    346                     parent->HideDVDButton(true);
     344                    if (parent)
     345                        parent->HideDVDButton(true);
    347346                    autoselectaudio = true;
    348347                    autoselectsubtitle = true;
     348                    if (!GetMythUI()->GetScreensaverEnabled())
     349                        GetMythUI()->RestoreScreensaver();
     350                }
     351                else
     352                {
     353                    if (GetMythUI()->GetScreensaverEnabled())
     354                        GetMythUI()->DisableScreensaver();
    349355                }
    350356
    351357                if (blockBuf != dvdBlockWriteBuf)
  • libs/libmythtv/avformatdecoder.cpp

    diff --git a/libs/libmythtv/avformatdecoder.cpp b/libs/libmythtv/avformatdecoder.cpp
    index 310a5b9..031ec84 100644
    a b bool AvFormatDecoder::GetFrame(int onlyvideo)  
    31963196                if (storedPackets.count() < 2 && !decodeStillFrame)
    31973197                    storevideoframes = true;
    31983198               
    3199                 VERBOSE(VB_EXTRA, QString("DVD Playback Debugging"
     3199                VERBOSE(VB_EXTRA, QString("DVD Playback Debugging "
    32003200                    "inDVDMenu %1 storedPacketcount %2 dvdstill %3")
    32013201                    .arg(inDVDMenu).arg(storedPackets.count()).arg(inDVDStill));
    32023202               
    bool AvFormatDecoder::GetFrame(int onlyvideo)  
    33353335            if (!decodeStillFrame && inDVDStill)
    33363336            {
    33373337                decodeStillFrame = true;
    3338                 GetMythUI()->RestoreScreensaver();
    33393338                d->ResetMPEG2();
    33403339            }
    33413340