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

DTV: do not fix up "0 kHz" to "0 Hz"

parent ef0e4ce4
...@@ -571,7 +571,7 @@ static int Tune (vlc_object_t *obj, dvb_device_t *dev, const delsys_t *delsys, ...@@ -571,7 +571,7 @@ static int Tune (vlc_object_t *obj, dvb_device_t *dev, const delsys_t *delsys,
static uint64_t var_InheritFrequency (vlc_object_t *obj) static uint64_t var_InheritFrequency (vlc_object_t *obj)
{ {
uint64_t freq = var_InheritInteger (obj, "dvb-frequency"); uint64_t freq = var_InheritInteger (obj, "dvb-frequency");
if (freq <= 108000000) if (freq != 0 && freq <= 108000000)
{ {
msg_Err (obj, "%"PRIu64" Hz carrier frequency is too low.", freq); msg_Err (obj, "%"PRIu64" Hz carrier frequency is too low.", freq);
freq *= 1000; freq *= 1000;
......
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