mirror of https://github.com/mpv-player/mpv
vd_ffmpeg: Reset ctx->vo_initialized to 0 on a resolution change
Otherwise we might think the filter chain/vo is ready when it actually is not, leading to a crash. Fixes crash part of bug 1156. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32690 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d34257b5a3
commit
ad14401720
|
@ -473,6 +473,7 @@ static int init_vo(sh_video_t *sh, enum PixelFormat pix_fmt){
|
||||||
pix_fmt != ctx->pix_fmt ||
|
pix_fmt != ctx->pix_fmt ||
|
||||||
!ctx->vo_initialized)
|
!ctx->vo_initialized)
|
||||||
{
|
{
|
||||||
|
ctx->vo_initialized = 0;
|
||||||
mp_msg(MSGT_DECVIDEO, MSGL_V, "[ffmpeg] aspect_ratio: %f\n", aspect);
|
mp_msg(MSGT_DECVIDEO, MSGL_V, "[ffmpeg] aspect_ratio: %f\n", aspect);
|
||||||
|
|
||||||
// Do not overwrite s->aspect on the first call, so that a container
|
// Do not overwrite s->aspect on the first call, so that a container
|
||||||
|
|
Loading…
Reference in New Issue