Mercurial > mplayer.hg
changeset 18553:f85b5c5d5d18
Remove dead code, and do close smem file descriptor during un-init
author | poirierg |
---|---|
date | Tue, 30 May 2006 23:18:05 +0000 |
parents | 2d996eb065d4 |
children | ebf5efd78cb6 |
files | libvo/vo_s3fb.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_s3fb.c Wed May 31 23:37:29 2006 +0000 +++ b/libvo/vo_s3fb.c Tue May 30 23:18:05 2006 +0000 @@ -265,9 +265,9 @@ 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; }