Mercurial > mplayer.hg
changeset 21834:8d486fd6cf2f
in dvb_get_config() open the frontend in READ_ONLY mode for probing (worksaround some buggy driver)
author | nicodvb |
---|---|
date | Sun, 07 Jan 2007 13:05:59 +0000 |
parents | 326ddc4f8366 |
children | 5ee5281c78f8 |
files | stream/stream_dvb.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/stream_dvb.c Sun Jan 07 12:06:48 2007 +0000 +++ b/stream/stream_dvb.c Sun Jan 07 13:05:59 2007 +0000 @@ -765,7 +765,7 @@ 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);