Commit e80d2a5a authored by Christophe Massiot's avatar Christophe Massiot

* dvb.c: Raise DVR buffer to work around brain-dead code in STB0899 driver, thanks Marian.

parent 98244272
......@@ -53,6 +53,7 @@
#define FRONTEND_LOCK_TIMEOUT 30000000 /* 30 s */
#define COUNTER_WRAP 200 /* we make 200 read calls per second */
#define MAX_READ_ONCE 50
#define DVR_BUFFER_SIZE 40*188*1024 /* bytes */
static int i_frontend, i_dvr;
static fe_status_t i_last_status;
......@@ -104,6 +105,12 @@ void dvb_Open( void )
strerror(errno) );
}
if ( ioctl( i_dvr, DMX_SET_BUFFER_SIZE, DVR_BUFFER_SIZE ) < 0 )
{
msg_Warn( NULL, "couldn't set %s buffer size (%s)", psz_tmp,
strerror(errno) );
}
en50221_Init();
i_ca_next_event = mdate() + i_ca_timeout;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment