Ticket #12140: don-t-try-to-crop-vaapi-frames.patch

File don-t-try-to-crop-vaapi-frames.patch, 882 bytes (added by Cédric Schieli <cschieli@…>, 6 years ago)
  • mythtv/libs/libmythtv/videoout_opengl.cpp

    From c73c51c6440b9b950c797537c8be588267d64bd3 Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?C=C3=A9dric=20Schieli?= <cschieli@gmail.com>
    Date: Sun, 11 May 2014 12:49:01 +0200
    Subject: Don't try to crop VAAPI frames, they have no real buffer attached
    
    ---
     mythtv/libs/libmythtv/videoout_opengl.cpp | 5 ++++-
     1 file changed, 4 insertions(+), 1 deletion(-)
    
    diff --git a/mythtv/libs/libmythtv/videoout_opengl.cpp b/mythtv/libs/libmythtv/videoout_opengl.cpp
    index bd95898..a65427a 100644
    a b void VideoOutputOpenGL::ProcessFrame(VideoFrame *frame, OSD *osd, 
    477477        pauseframe = true;
    478478    }
    479479
    480     CropToDisplay(frame);
     480    if (sw_frame)
     481    {
     482        CropToDisplay(frame);
     483    }
    481484
    482485    bool dummy = frame->dummy;
    483486    if (filterList && sw_frame && !dummy)