video_output: reinit the vout if the crop changes
commit17efaa77b82e61f224b0723b6309c01b6dc687c1
authorSteve Lhomme <robux4@videolabs.io>
Tue, 12 Dec 2017 13:13:18 +0000 (12 14:13 +0100)
committerThomas Guillem <thomas@gllm.fr>
Mon, 18 Dec 2017 12:18:45 +0000 (18 13:18 +0100)
tree28858bd280e4c3f146f63f621e9dee1a82cafe35
parent24b436c88a986fcf2cddb3c52e5a067565fc537e
video_output: reinit the vout if the crop changes

If you play a file that has the same decoder size but different display size
consecutively, the decoder picture pool needs to be updated so that the
i_visible_lines of each picture plane matches the new picture format.

The easiest way is to reinit the vout. Another way would be to update the
pictures in each picture pool dynamically. It cannot just be handled on the
vout side as some decoders and filters rely on i_visible/offset to copy
only the required data (for example lavc_CopyPicture).

Fixes #19268

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
src/video_output/video_output.c