From 43b0b8d4bf71f19677da3580ec2b5d11ae252dd3 Mon Sep 17 00:00:00 2001 From: filon Date: Sat, 4 Jan 2003 22:41:52 +0000 Subject: Not checking it caused SIGSEV when uninitning after vesa init failed. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8787 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_vesa.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libvo') diff --git a/libvo/vo_vesa.c b/libvo/vo_vesa.c index 1b5a3e52a2..bebfcfef90 100644 --- a/libvo/vo_vesa.c +++ b/libvo/vo_vesa.c @@ -991,6 +991,8 @@ config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uin static void uninit(void) { + // not inited + if (!init_state) return; vesa_term(); if(verbose > 2) printf("vo_vesa: uninit was called\n"); -- cgit v1.2.3