diff options
author | poirierg <poirierg@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-05-30 23:18:05 +0000 |
---|---|---|
committer | poirierg <poirierg@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-05-30 23:18:05 +0000 |
commit | ada990369334b770f323d84a0a13ccf7369f9fef (patch) | |
tree | c12fdabd1112d5ba4beb0640cd8b0dffb77cb252 /libvo | |
parent | e69e4dfd82467d815d462bc75f0f6ac3b63e056c (diff) | |
download | mpv-ada990369334b770f323d84a0a13ccf7369f9fef.tar.bz2 mpv-ada990369334b770f323d84a0a13ccf7369f9fef.tar.xz |
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
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_s3fb.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |