mirror of
https://github.com/mpv-player/mpv
synced 2025-03-19 18:05:21 +00: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:
parent
26108aa19a
commit
4590600a42
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user