summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvb.c
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-01-07 13:05:59 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-01-07 13:05:59 +0000
commit3f4d9c9c093fcc5040a054fb81133dbe1936dfc1 (patch)
treecfe4d65e72653f92d6c3677a64ab1436cd7dce25 /stream/stream_dvb.c
parent44ecf3956720cf8ea9631f7e1d2cb1a351cfe1ec (diff)
downloadmpv-3f4d9c9c093fcc5040a054fb81133dbe1936dfc1.tar.bz2
mpv-3f4d9c9c093fcc5040a054fb81133dbe1936dfc1.tar.xz
in dvb_get_config() open the frontend in READ_ONLY mode for probing (worksaround some buggy driver)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21852 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/stream_dvb.c')
-rw-r--r--stream/stream_dvb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream_dvb.c b/stream/stream_dvb.c
index 26d6a3bcd1..9c950bef3c 100644
--- a/stream/stream_dvb.c
+++ b/stream/stream_dvb.c
@@ -765,7 +765,7 @@ dvb_config_t *dvb_get_config(void)
for(i=0; i<MAX_CARDS; i++)
{
sprintf(filename, "/dev/dvb/adapter%d/frontend0", i);
- fd = open(filename, O_RDWR | O_NONBLOCK);
+ fd = open(filename, O_RDONLY|O_NONBLOCK);
if(fd < 0)
{
mp_msg(MSGT_DEMUX, MSGL_V, "DVB_CONFIG, can't open device %s, skipping\n", filename);