Ticket #4897: 4897-v2.patch

File 4897-v2.patch, 702 bytes (added by danielk, 12 years ago)

Better fix

  • libs/libmythtv/NuppelVideoPlayer.cpp

     
    996996        return;
    997997    }
    998998
    999     video_dim    = QSize((width + 15) & ~0xf, (height + 15) & ~0xf);
    1000     video_disp_dim=QSize(width, height);
     999    if ((width > 0) && (height > 0))
     1000    {
     1001        video_dim      = QSize((width + 15) & ~0xf, (height + 15) & ~0xf);
     1002        video_disp_dim = QSize(width, height);
     1003    }
    10011004    video_aspect = (aspect > 0.0f) ? aspect : video_aspect;
    10021005    keyframedist = (keyframedistance > 0) ? keyframedistance : keyframedist;
    10031006