diff options
author | wm4 <wm4@nowhere> | 2016-01-30 20:59:25 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-01-30 20:59:25 +0100 |
commit | e42a08340b85760f83d6c3a63215f397296dabc7 (patch) | |
tree | 68acff4bd513b584ea8686f3071782eb2b394800 /video/decode/rpi.c | |
parent | effc466222d1c1c63340b5245d7ebe48403214d6 (diff) |
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/decode/rpi.c')
0 files changed, 0 insertions, 0 deletions