From ada990369334b770f323d84a0a13ccf7369f9fef Mon Sep 17 00:00:00 2001 From: poirierg Date: Tue, 30 May 2006 23:18:05 +0000 Subject: Remove dead code, and do close smem file descriptor during un-init git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18554 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_s3fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libvo') diff --git a/libvo/vo_s3fb.c b/libvo/vo_s3fb.c index 91af64ec29..8f9c7ceef7 100644 --- a/libvo/vo_s3fb.c +++ b/libvo/vo_s3fb.c @@ -265,9 +265,9 @@ static int preinit(const char *arg) if((long)smem == -1) { mp_msg(MSGT_VO, MSGL_FATAL, "s3fb: Couldn't map memory areas: %s\n", strerror(errno)); - if((long)smem != -1) - munmap(smem, fb_finfo.smem_len); smem = NULL; + close(fd); + fd = -1; return -1; } -- cgit v1.2.3