Skip to content
Snippets Groups Projects
Commit 1f7f400f authored by Thomas Guillem's avatar Thomas Guillem Committed by Felix Paul Kühne
Browse files

mediacodec: release timestamp_fifo with video context

`CleanInputVideo()` is linked to the input side of the decoder
(.pf_decode) but `video.timestamp_fifo` can be used from the output side
(threads from mediacodec) and is actually also tied to the life cycle of
the video context, as visible in the destructor `CloseDecoder`. Since
the life cycle of the video context is at least the one from the input
side, destroy the timestamp_fifo there.

Fixes a use-after-free when the video context is not released from
CloseDestructor() while mediacodec is still running (not joined yet).

Regression from cdff503e and
57323dda
parent 305ff7a2
No related branches found
No related tags found
Loading
Pipeline #320148 passed with stage
in 28 minutes and 41 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment