From 143cf79a960625e8f1b623020987c0b7aa81a0f2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 6 May 2014 00:21:15 +0200 Subject: vo: get rid of config_count field Doesn't really seem to be much of use. Get rid of the remaining uses of it. Concerning vo_opengl_old, it seems uninitGl() works fine even if called before initialization. --- video/out/vo_image.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'video/out/vo_image.c') diff --git a/video/out/vo_image.c b/video/out/vo_image.c index 6c518655ad..b82adbba54 100644 --- a/video/out/vo_image.c +++ b/video/out/vo_image.c @@ -69,10 +69,6 @@ static int reconfig(struct vo *vo, struct mp_image_params *params, int flags) struct priv *p = vo->priv; mp_image_unrefp(&p->current); - if (p->outdir && vo->config_count < 1) - if (!checked_mkdir(vo, p->outdir)) - return -1; - return 0; } @@ -127,6 +123,9 @@ static void uninit(struct vo *vo) static int preinit(struct vo *vo) { + struct priv *p = vo->priv; + if (p->outdir && !checked_mkdir(vo, p->outdir)) + return -1; vo->untimed = true; return 0; } -- cgit v1.2.3