mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-23 19:38:51 +08:00
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:
+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