From 7a6227a18476aee655df5dc76d27c281cc3590c2 Mon Sep 17 00:00:00 2001 From: reimar Date: Mon, 20 Jan 2014 22:08:47 +0000 Subject: 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 --- stream/stream_pvr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream') 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); -- cgit v1.2.3