summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2014-01-20 22:08:47 +0000
committerwm4 <wm4@nowhere>2014-01-31 19:06:20 +0100
commitd49b49ff96e97b7fc03adabf2ea17fd278a1d02e (patch)
treec9231b60644863c42b02720724172c5a09898a4c
parentf088abb2bfb9913ab9e8ef560db538a14b3a07e1 (diff)
downloadmpv-d49b49ff96e97b7fc03adabf2ea17fd278a1d02e.tar.bz2
mpv-d49b49ff96e97b7fc03adabf2ea17fd278a1d02e.tar.xz
stream_pvr: Fix fd check, -1 indicates invalid, not 0.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36677 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--stream/stream_pvr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream_pvr.c b/stream/stream_pvr.c
index 12a2c8d5f5..8b5251cb06 100644
--- a/stream/stream_pvr.c
+++ b/stream/stream_pvr.c
@@ -190,7 +190,7 @@ pvr_uninit (struct pvr_t *pvr)
return;
/* close device */
- if (pvr->dev_fd)
+ if (pvr->dev_fd != -1)
close (pvr->dev_fd);
free (pvr->video_dev);