Ticket #13223: 20180221_ffmpeg_ticket_13223.patch

File 20180221_ffmpeg_ticket_13223.patch, 1002 bytes (added by Peter Bennett, 3 years ago)

Second attempt patch for freeze when playing

  • mythtv/libs/libmythtv/videoout_vdpau.cpp

    diff --git a/mythtv/libs/libmythtv/videoout_vdpau.cpp b/mythtv/libs/libmythtv/videoout_vdpau.cpp
    index 6ef4185..9494f60 100644
    a b bool VideoOutputVDPAU::Init(const QSize &video_dim_buf, 
    9494                            WId winid, const QRect &win_rect,
    9595                            MythCodecID codec_id)
    9696{
    97     // Attempt to free up as much video memory as possible
    98     // only works when using the VDPAU painter for the UI
    99     MythPainter *painter = GetMythPainter();
    100     if (painter)
    101         painter->FreeResources();
     97    if (!m_win) // Only if this is the first initialization
     98    {
     99        // Attempt to free up as much video memory as possible
     100        // only works when using the VDPAU painter for the UI
     101        MythPainter *painter = GetMythPainter();
     102        if (painter)
     103            painter->FreeResources();
     104    }
    102105
    103106    m_win = winid;
    104107    QMutexLocker locker(&m_lock);