Ticket #3986: guide-deinterlace.patch

File guide-deinterlace.patch, 2.7 KB (added by darkstar6262@…, 12 years ago)

Patch to disable deinterlacing while the guide is active

  • libs/libmythtv/guidegrid.cpp

    diff -ur libs/libmythtv/guidegrid.cpp libs/libmythtv/guidegrid.cpp
     
    740740            type->SetText(curTime);
    741741    }
    742742
     743
    743744    if (m_player)
    744745    {
    745746        if (m_player->IsRunning() == true && videoRect.width() > 0 &&
    746             videoRect.height() > 0)
     747            videoRect.height() > 0 && m_player->IsEmbedding() == false) {
    747748            m_player->EmbedOutput(this->winId(), videoRect.x(), videoRect.y(),
    748749                                  videoRect.width(), videoRect.height());
     750        }
    749751    }
    750752
    751753    fillProgramInfos();
  • libs/libmythtv/NuppelVideoPlayer.cpp

    diff -ur libs/libmythtv/NuppelVideoPlayer.cpp libs/libmythtv/NuppelVideoPlayer.cpp
     
    911911    m_scan_locked  = false;
    912912}
    913913
     914FrameScanType NuppelVideoPlayer::GetScanType() {
     915    return m_scan;
     916}
     917
    914918void NuppelVideoPlayer::SetScanType(FrameScanType scan)
    915919{
    916920    QMutexLocker locker(&videofiltersLock);
  • libs/libmythtv/NuppelVideoPlayer.h

    diff -ur libs/libmythtv/NuppelVideoPlayer.h libs/libmythtv/NuppelVideoPlayer.h
     
    164164
    165165    void NextScanType(void)
    166166        { SetScanType((FrameScanType)(((int)m_scan + 1) & 0x3)); }
     167    FrameScanType GetScanType();
    167168    void SetScanType(FrameScanType);
    168169    FrameScanType GetScanType(void) const { return m_scan; }
    169170    bool IsScanTypeLocked(void) const { return m_scan_locked; }
  • libs/libmythtv/tv_play.cpp

    diff -ur libs/libmythtv/tv_play.cpp libs/libmythtv/tv_play.cpp
     
    57495749    embedWinID = wid;
    57505750    embedBounds = QRect(x,y,w,h);
    57515751
    5752     if (nvp)
     5752    if (nvp) {
     5753        m_current_scan = nvp->GetScanType();
     5754        nvp->SetScanType((FrameScanType) 3);
    57535755        nvp->EmbedInWidget(wid, x, y, w, h);
     5756    }
    57545757}
    57555758
    57565759void TV::StopEmbeddingOutput(void)
    57575760{
    5758     if (nvp)
     5761    if (nvp) {
    57595762        nvp->StopEmbedding();
     5763        nvp->SetScanType(m_current_scan);
     5764    }
    57605765    embedWinID = 0;
    57615766}
    57625767
  • libs/libmythtv/tv_play.h

    diff -ur libs/libmythtv/tv_play.h libs/libmythtv/tv_play.h
     
    436437    QString db_channel_format;
    437438    QString db_time_format;
    438439    QString db_short_date_format;
     440    FrameScanType m_current_scan;
    439441    int     fftime;
    440442    int     rewtime;
    441443    int     jumptime;