0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

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
This commit is contained in:
reimar 2014-01-20 22:08:47 +00:00 committed by wm4
parent 8b0cfdc81e
commit 7a6227a184

View File

@ -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);