Commit 3ce11e33 authored by massiot's avatar massiot

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


git-svn-id: svn://svn.videolan.org/dvblast/trunk@64 55d3f8b6-4a41-4d2d-a900-313d1436a5b8
parent aff9d92f
......@@ -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