player: fix crash if no video decoder can be initialized

Caused by the recent refactoring for complex filters.
This commit is contained in:
wm4
2016-02-10 00:07:01 +01:00
parent b7f6dfc19a
commit 7caecc53b0
2 changed files with 3 additions and 0 deletions

View File

@@ -395,6 +395,7 @@ int reinit_video_chain_src(struct MPContext *mpctx, struct lavfi_pad *src)
mpctx->vo_chain = vo_c;
vo_c->log = mpctx->log;
vo_c->vo = mpctx->video_out;
vo_c->vf = vf_new(mpctx->global);
vo_control(vo_c->vo, VOCTRL_GET_HWDEC_INFO, &vo_c->hwdec_info);