Commit bef8181d authored by François Cartegnie's avatar François Cartegnie 🤞

access: dvb: cleanup

parent ee21d0f8
......@@ -96,10 +96,6 @@ static int Control( access_t *, int, va_list );
static block_t *BlockScan( access_t * );
#define DVB_READ_ONCE 20
#define DVB_READ_ONCE_START 2
#define DVB_READ_ONCE_SCAN 1
#define DVB_SCAN_MAX_SIGNAL_TIME (1000*1000)
#define DVB_SCAN_MAX_LOCK_TIME (5000*1000)
......@@ -159,7 +155,6 @@ static int Open( vlc_object_t *p_this )
return VLC_EGENERIC;
}
{
scan_parameter_t parameter;
scan_t *p_scan;
......@@ -182,13 +177,10 @@ static int Open( vlc_object_t *p_this )
}
scan_parameter_Clean( &parameter );
p_sys->scan = p_scan;
p_sys->i_read_once = DVB_READ_ONCE_SCAN;
}
/* Set up access */
p_access->pf_read = NULL;
p_access->pf_control = Control;
p_access->pf_seek = NULL;
access_InitFields( p_access );
return VLC_SUCCESS;
......@@ -455,9 +447,6 @@ static void FilterSet( access_t *p_access, int i_pid, int i_type )
}
p_sys->p_demux_handles[i].i_type = i_type;
p_sys->p_demux_handles[i].i_pid = i_pid;
if( p_sys->i_read_once < DVB_READ_ONCE )
p_sys->i_read_once++;
}
static void FilterUnset( access_t *p_access, int i_max )
......
......@@ -60,14 +60,6 @@ struct access_sys_t
demux_handle_t p_demux_handles[MAX_DEMUX];
frontend_t *p_frontend;
mtime_t i_frontend_timeout;
bool b_budget_mode;
struct cam *p_cam;
/* */
int i_read_once;
int i_stat_counter;
/* Scan */
struct scan_t *scan;
......
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