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_opengl_old.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'video/out/vo_opengl_old.c') diff --git a/video/out/vo_opengl_old.c b/video/out/vo_opengl_old.c index 09945e9b54..5c9a64f4f2 100644 --- a/video/out/vo_opengl_old.c +++ b/video/out/vo_opengl_old.c @@ -1731,8 +1731,7 @@ static int reconfig(struct vo *vo, struct mp_image_params *params, int flags) p->vo_flipped = !!(flags & VOFLAG_FLIPPING); - if (vo->config_count) - uninitGl(vo); + uninitGl(vo); if (!config_window(vo, vo->dwidth, vo->dheight, flags)) return -1; -- cgit v1.2.3