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:
1 parent
26108aa19a
commit
4590600a42
1 file changed
+3
-3
+3
-3
@@ -682,13 +682,13 @@ static void uninit(void)
|
||||
}
|
||||
}
|
||||
|
||||
if (fd_video) {
|
||||
if (fd_video != -1) {
|
||||
close(fd_video);
|
||||
}
|
||||
if (fd_spu) {
|
||||
if (fd_spu != -1) {
|
||||
close(fd_spu);
|
||||
}
|
||||
if (fd_control) {
|
||||
if (fd_control != -1) {
|
||||
close(fd_control);
|
||||
}
|
||||
#ifdef SPU_SUPPORT
|
||||
|
||||
Reference in new issue
Block a user