diff options
author | Marco Migliori <sgerwk@aol.com> | 2018-02-08 11:55:22 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-02-11 17:51:15 -0800 |
commit | 733bcc03f62009e8cf27c95df1c7d643724df108 (patch) | |
tree | 012c42c6f8aff3131e87c599a87f8a334b99619b /demux/demux_mf.c | |
parent | 3a2bc158bb0988af0024014a7a39d6f5c943b6be (diff) | |
download | mpv-733bcc03f62009e8cf27c95df1c7d643724df108.tar.bz2 mpv-733bcc03f62009e8cf27c95df1c7d643724df108.tar.xz |
vo_drm: reset last input image on reconfig
The last image is stored in vo->priv->last_input to be used when
redrawing a frame is necessary (control: VOCTRL_REDRAW_FRAME). At the
beginning it is NULL, so a redraw request has no effect since
draw_image ignores calls with image=NULL.
When using --force-window the size of the image may change without the
vo structure being re-created. Before this commit, the size of
vo->priv->last_input could become inconsistent with the cropping
rectangle vo->priv->src_rc, which could trigger an assert in
mp_image_crop_rc(). Even if it did not, the last image of a video
remained on the screen when the next file in the playlist had no video
(e.g., it was an mp3 without an embedded cover).
This commit deallocates and resets to NULL the image
vo->priv->last_input when reconfiguring video.
Diffstat (limited to 'demux/demux_mf.c')
0 files changed, 0 insertions, 0 deletions