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

DTV: use dvb_enum_systems() instead of dvb_guess_system()

parent dafa954d
......@@ -554,7 +554,16 @@ static const delsys_t *GuessSystem (const char *scheme, dvb_device_t *dev)
if (!strcasecmp (scheme, "dvb-t2"))
return &dvbt2;
return dvb_guess_system (dev);
unsigned systems = dvb_enum_systems (dev);
if (systems & ATSC)
return &atsc;
if (systems & DVB_C)
return &dvbc;
if (systems & DVB_S)
return &dvbc;
if (systems & DVB_T)
return &dvbt;
return NULL;
}
/** Set parameters and tune the device */
......
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