vo_dxr3: Fix validity checks before closing a file descriptor

-1 is invalid (and the initial value), 0 is not.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32467 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2010-10-09 13:35:16 +00:00 committed by Uoti Urpala
parent 26108aa19a
commit 4590600a42
1 changed files with 3 additions and 3 deletions

View File

@ -682,13 +682,13 @@ static void uninit(void)
} }
} }
if (fd_video) { if (fd_video != -1) {
close(fd_video); close(fd_video);
} }
if (fd_spu) { if (fd_spu != -1) {
close(fd_spu); close(fd_spu);
} }
if (fd_control) { if (fd_control != -1) {
close(fd_control); close(fd_control);
} }
#ifdef SPU_SUPPORT #ifdef SPU_SUPPORT