summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-04 18:44:14 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-04 18:44:14 +0000
commit1efaaef8a6fa12329b7dc2d6270b044c719595f4 (patch)
treee54677294c6feac6ebf9a0ff587a9ade8b5f01f0 /stream
parent2808f340cd661c898e10ff8c6ec170d7e503b3e6 (diff)
downloadmpv-1efaaef8a6fa12329b7dc2d6270b044c719595f4.tar.bz2
mpv-1efaaef8a6fa12329b7dc2d6270b044c719595f4.tar.xz
Intialize unused fd variables to -1 (which is actually invalid) instead
of 0 (which is stdin and can cause weird side-effects). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27893 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r--stream/dvb_tune.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/dvb_tune.c b/stream/dvb_tune.c
index b42d69d17e..ade51a4c46 100644
--- a/stream/dvb_tune.c
+++ b/stream/dvb_tune.c
@@ -118,7 +118,7 @@ int dvb_open_devices(dvb_priv_t *priv, int n, int demux_cnt)
return 0;
}
#ifdef CONFIG_DVB_HEAD
- priv->sec_fd=0;
+ priv->sec_fd=-1;
#else
priv->sec_fd = open(sec_dev, O_RDWR);
if(priv->sec_fd < 0)