summaryrefslogtreecommitdiffstats
path: root/video/out/x11_common.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-01-30 20:59:25 +0100
committerwm4 <wm4@nowhere>2016-01-30 20:59:25 +0100
commite42a08340b85760f83d6c3a63215f397296dabc7 (patch)
tree68acff4bd513b584ea8686f3071782eb2b394800 /video/out/x11_common.c
parenteffc466222d1c1c63340b5245d7ebe48403214d6 (diff)
downloadmpv-e42a08340b85760f83d6c3a63215f397296dabc7.tar.bz2
mpv-e42a08340b85760f83d6c3a63215f397296dabc7.tar.xz
vd_lavc: release surfaces before destroying decoder
Commit b53cb8de added a delay queue for decoded frames. This is supposed to be used with copy-back decoders like dxva2-copy and vaapi-copy. Surfaces returned by them can't be referenced after uninitializing the decoders, so they have to be released before destroying the decoder. Move the flush_all() call above decoder uninit accordingly. Also move the destruction of the AVFrame used for decoding (just for being defensive - normally it doesn't hold any reference).
Diffstat (limited to 'video/out/x11_common.c')
0 files changed, 0 insertions, 0 deletions