summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorfilon <filon@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-04 22:41:52 +0000
committerfilon <filon@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-04 22:41:52 +0000
commit43b0b8d4bf71f19677da3580ec2b5d11ae252dd3 (patch)
tree2f78e0be6f2a5caade410101196f3022cc742a7b /libvo
parente6e0f6674f44df79ff60f88e1fe3557117f7dc96 (diff)
downloadmpv-43b0b8d4bf71f19677da3580ec2b5d11ae252dd3.tar.bz2
mpv-43b0b8d4bf71f19677da3580ec2b5d11ae252dd3.tar.xz
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
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_vesa.c2
1 files changed, 2 insertions, 0 deletions
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");