[MPlayer-cvslog] r36677 - trunk/stream/stream_pvr.c
reimar
subversion at mplayerhq.hu
Mon Jan 20 23:08:47 CET 2014
Author: reimar
Date: Mon Jan 20 23:08:47 2014
New Revision: 36677
Log:
stream_pvr: Fix fd check, -1 indicates invalid, not 0.
Modified:
trunk/stream/stream_pvr.c
Modified: trunk/stream/stream_pvr.c
==============================================================================
--- trunk/stream/stream_pvr.c Mon Jan 20 23:08:46 2014 (r36676)
+++ trunk/stream/stream_pvr.c Mon Jan 20 23:08:47 2014 (r36677)
@@ -189,7 +189,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);
More information about the MPlayer-cvslog
mailing list