From 44950449473cd786aa08324a20b2e8c8d413d965 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 27 Nov 2014 19:48:15 +0100 Subject: [PATCH] gl_video: minor simplification Not needed anymore. --- video/out/gl_video.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/video/out/gl_video.c b/video/out/gl_video.c index 908442ad3d..56bdf78b57 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -2212,10 +2212,6 @@ static const struct fmt_entry *find_tex_format(int bytes_per_comp, int n_channel static bool init_format(int fmt, struct gl_video *init) { - struct gl_video dummy; - if (!init) - init = &dummy; - init->hwdec_active = false; if (init->hwdec && init->hwdec->driver->imgfmt == fmt) { fmt = init->hwdec->converted_imgfmt;