summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libvo/vo_dxr3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libvo/vo_dxr3.c b/libvo/vo_dxr3.c
index 41e1dcfd4e..ab2318edd2 100644
--- a/libvo/vo_dxr3.c
+++ b/libvo/vo_dxr3.c
@@ -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