mirror of
https://github.com/mpv-player/mpv
synced 2025-04-10 19:51:43 +00:00
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
This commit is contained in:
parent
e69e4dfd82
commit
ada9903693
@ -265,9 +265,9 @@ static int preinit(const char *arg)
|
|||||||
|
|
||||||
if((long)smem == -1) {
|
if((long)smem == -1) {
|
||||||
mp_msg(MSGT_VO, MSGL_FATAL, "s3fb: Couldn't map memory areas: %s\n", strerror(errno));
|
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;
|
smem = NULL;
|
||||||
|
close(fd);
|
||||||
|
fd = -1;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user