diff options
author | Ho Ming Shun <cyph1984@gmail.com> | 2021-09-06 14:05:12 +0800 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2021-09-28 16:46:52 +0000 |
commit | 940f8715141dfb133ff34f6899608a379f8be5ca (patch) | |
tree | 31de8b56a372a6c26924e0360b34d342663218a9 /demux/demux.c | |
parent | cc4ada655aae06218b900bb434e3521566394cde (diff) | |
download | mpv-940f8715141dfb133ff34f6899608a379f8be5ca.tar.bz2 mpv-940f8715141dfb133ff34f6899608a379f8be5ca.tar.xz |
vo_rpi: fix DISPMANX_UPDATE_HANDLE_T leak
Fixes handle leak that happened whenever tvservice callback was invoked.
Powering on the TV causes HDMI unplug and attached events to be sent to
the tvservice callback.
This meant you could only power on/off your TV a finite number of times
before you were unable to allocate additional resources from VideoCore
(usually resulting in a "Could not get DISPMANX objects." error).
Furthermore because the VideoCore kernel driver does not cleanup handles
when a process dies, the only way to recover from the leak was to reboot
the RPI.
Diffstat (limited to 'demux/demux.c')
0 files changed, 0 insertions, 0 deletions