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
This commit is contained in:
filon 2003-01-04 22:41:52 +00:00
parent e6e0f6674f
commit 43b0b8d4bf
1 changed files with 2 additions and 0 deletions

View File

@ -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");