Commit ceeacab6 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

DVB: remove unused parameter

parent b92e5095
......@@ -361,9 +361,8 @@ static int Open (vlc_object_t *obj)
return VLC_ENOMEM;
var_LocationParse (obj, access->psz_location, "dvb-");
unsigned freq = var_InheritFrequency (obj);
dvb_device_t *dev = dvb_open (obj, freq != 0);
dvb_device_t *dev = dvb_open (obj);
if (dev == NULL)
{
free (sys);
......@@ -373,6 +372,7 @@ static int Open (vlc_object_t *obj)
sys->dev = dev;
access->p_sys = sys;
unsigned freq = var_InheritFrequency (obj);
if (freq != 0)
{
const delsys_t *delsys = GuessSystem (access->psz_access, dev);
......
......@@ -130,11 +130,8 @@ struct dvb_device
uint32_t lowf, highf, switchf;
};
dvb_device_t *dvb_open (vlc_object_t *obj, bool tune)
dvb_device_t *dvb_open (vlc_object_t *obj)
{
if (!tune)
return NULL; /* not implemented (yet?) */
dvb_device_t *d = new dvb_device_t;
d->module = new BDAGraph (obj);
......
......@@ -32,7 +32,7 @@ extern const delsys_t dvbc, dvbs, dvbs2, dvbt, dvbt2, atsc, cqam;
typedef struct dvb_device dvb_device_t;
dvb_device_t *dvb_open (vlc_object_t *obj, bool tune);
dvb_device_t *dvb_open (vlc_object_t *obj);
void dvb_close (dvb_device_t *);
ssize_t dvb_read (dvb_device_t *, void *, size_t);
......
......@@ -192,7 +192,7 @@ struct dvb_device
/**
* Opens the DVB tuner
*/
dvb_device_t *dvb_open (vlc_object_t *obj, bool tune)
dvb_device_t *dvb_open (vlc_object_t *obj)
{
dvb_device_t *d = malloc (sizeof (*d));
if (unlikely(d == NULL))
......
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