summaryrefslogtreecommitdiffstats
path: root/stream/dvb_tune.c
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-05 23:37:52 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-05 23:37:52 +0000
commite3d5eacec36460eb5d0ce462f3bce4a83110c3d1 (patch)
treeb267d454805465f67765b43965be8814059ffba9 /stream/dvb_tune.c
parent69ad7080f9177c5fa3d9a7bd9aa252b04a6f553e (diff)
downloadmpv-e3d5eacec36460eb5d0ce462f3bce4a83110c3d1.tar.bz2
mpv-e3d5eacec36460eb5d0ce462f3bce4a83110c3d1.tar.xz
set to -1 fds that were closed; handle the sec_fd only if CONFIG_DVB_HEAD isn't defined; patch by Reimar
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27897 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/dvb_tune.c')
-rw-r--r--stream/dvb_tune.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/stream/dvb_tune.c b/stream/dvb_tune.c
index ade51a4c46..b631e13e73 100644
--- a/stream/dvb_tune.c
+++ b/stream/dvb_tune.c
@@ -117,9 +117,7 @@ int dvb_open_devices(dvb_priv_t *priv, int n, int demux_cnt)
mp_msg(MSGT_DEMUX, MSGL_ERR, "ERROR OPENING FRONTEND DEVICE %s: ERRNO %d\n", frontend_dev, errno);
return 0;
}
-#ifdef CONFIG_DVB_HEAD
- priv->sec_fd=-1;
-#else
+#ifndef CONFIG_DVB_HEAD
priv->sec_fd = open(sec_dev, O_RDWR);
if(priv->sec_fd < 0)
{