1
mirror of https://github.com/mpv-player/mpv synced 2024-09-05 02:48:21 +02:00

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
This commit is contained in:
nicodvb 2007-01-07 13:05:59 +00:00
parent 44ecf39567
commit 3f4d9c9c09

View File

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