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,
|
| 94 | 94 | WId winid, const QRect &win_rect, |
| 95 | 95 | MythCodecID codec_id) |
| 96 | 96 | { |
| 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 | } |
| 102 | 105 | |
| 103 | 106 | m_win = winid; |
| 104 | 107 | QMutexLocker locker(&m_lock); |