Ticket #10833: set-radio-frame-rate.patch

File set-radio-frame-rate.patch, 1.1 KB (added by Roger Siddons <dizygotheca@…>, 6 years ago)
  • mythtv/libs/libmythtv/mythplayer.cpp

    diff --git a/mythtv/libs/libmythtv/mythplayer.cpp b/mythtv/libs/libmythtv/mythplayer.cpp
    index 37fe62b..c9b8743 100644
    a b void MythPlayer::SetScanType(FrameScanType scan) 
    809809void MythPlayer::SetVideoParams(int width, int height, double fps,
    810810                                FrameScanType scan)
    811811{
    812     if (width < 1 || height < 1 || qIsNaN(fps))
     812    if (qIsNaN(fps))
    813813        return;
    814814
    815     video_dim      = QSize((width + 15) & ~0xf, (height + 15) & ~0xf);
    816     video_disp_dim = QSize(width, height);
    817     if (height)
    818         video_aspect = (float)width / height;
    819 
    820815    if (fps > 0.0f && fps < 121.0f)
    821816    {
    822817        video_frame_rate = fps;
    void MythPlayer::SetVideoParams(int width, int height, double fps, 
    834829        }
    835830    }
    836831
     832    if (width < 1 || height < 1)
     833        return;
     834
     835    video_dim      = QSize((width + 15) & ~0xf, (height + 15) & ~0xf);
     836    video_disp_dim = QSize(width, height);
     837    if (height)
     838        video_aspect = (float)width / height;
     839
    837840    if (videoOutput)
    838841        ReinitVideo();
    839842