mirror of https://github.com/mpv-player/mpv
vo_vdpau: Free buffers allocated by FFmpeg on uninit
This commit is contained in:
parent
98ee8dd159
commit
7038c57a0c
|
@ -1540,6 +1540,10 @@ static void uninit(struct vo *vo)
|
||||||
#endif
|
#endif
|
||||||
vo_x11_uninit(vo);
|
vo_x11_uninit(vo);
|
||||||
|
|
||||||
|
// Free bitstream buffers allocated by FFmpeg
|
||||||
|
for (int i = 0; i < MAX_VIDEO_SURFACES; i++)
|
||||||
|
av_freep(&vc->surface_render[i].bitstream_buffers);
|
||||||
|
|
||||||
dlclose(vc->vdpau_lib_handle);
|
dlclose(vc->vdpau_lib_handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue