changeset 36581:292a9e879fd0

stream_pvr: Fix fd check, -1 indicates invalid, not 0.
author reimar
date Mon, 20 Jan 2014 22:08:47 +0000
parents 0462f5c5aa00
children b28f3ff37ae7
files stream/stream_pvr.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_pvr.c	Mon Jan 20 22:08:46 2014 +0000
+++ b/stream/stream_pvr.c	Mon Jan 20 22:08:47 2014 +0000
@@ -189,7 +189,7 @@
     return;
 
   /* close device */
-  if (pvr->dev_fd)
+  if (pvr->dev_fd != -1)
     close (pvr->dev_fd);
 
   free (pvr->video_dev);