[MPlayer-cvslog] r21852 - trunk/stream/stream_dvb.c

nicodvb subversion at mplayerhq.hu
Sun Jan 7 14:05:59 CET 2007


Author: nicodvb
Date: Sun Jan  7 14:05:59 2007
New Revision: 21852

Modified:
   trunk/stream/stream_dvb.c

Log:
in dvb_get_config() open the frontend in READ_ONLY mode for probing (worksaround some buggy driver)

Modified: trunk/stream/stream_dvb.c
==============================================================================
--- trunk/stream/stream_dvb.c	(original)
+++ trunk/stream/stream_dvb.c	Sun Jan  7 14:05:59 2007
@@ -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);



More information about the MPlayer-cvslog mailing list