comparison stream/stream_dvb.c @ 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 8032b9d9349d
children cea0eb833758
comparison
equal deleted inserted replaced
21833:326ddc4f8366 21834:8d486fd6cf2f
763 conf->count = 0; 763 conf->count = 0;
764 conf->cards = NULL; 764 conf->cards = NULL;
765 for(i=0; i<MAX_CARDS; i++) 765 for(i=0; i<MAX_CARDS; i++)
766 { 766 {
767 sprintf(filename, "/dev/dvb/adapter%d/frontend0", i); 767 sprintf(filename, "/dev/dvb/adapter%d/frontend0", i);
768 fd = open(filename, O_RDWR | O_NONBLOCK); 768 fd = open(filename, O_RDONLY|O_NONBLOCK);
769 if(fd < 0) 769 if(fd < 0)
770 { 770 {
771 mp_msg(MSGT_DEMUX, MSGL_V, "DVB_CONFIG, can't open device %s, skipping\n", filename); 771 mp_msg(MSGT_DEMUX, MSGL_V, "DVB_CONFIG, can't open device %s, skipping\n", filename);
772 continue; 772 continue;
773 } 773 }