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-23 22:44:10 +0100
commit7a6227a18476aee655df5dc76d27c281cc3590c2 (patch)
tree43bcbf919fb554dbc052e4ebf133c4f767e6473b
parent8b0cfdc81e0f02eaf4709aa1046f2b25e36f57d0 (diff)
downloadmpv-7a6227a18476aee655df5dc76d27c281cc3590c2.tar.bz2
mpv-7a6227a18476aee655df5dc76d27c281cc3590c2.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);