mirror of
https://github.com/mpv-player/mpv
synced 2025-04-11 04:01:31 +00:00
stream_dvb: Multiply frequency and sample rate by 1000 for VDR.
These values are kept with a different unit in VDR style config for all delivery systems, not only for DVB-S / DVB-S2. Signed-off-by: Oliver Freyermuth <o.freyermuth@googlemail.com>
This commit is contained in:
parent
668598e133
commit
20381a5f5a
@ -301,7 +301,9 @@ static dvb_channels_list_t *dvb_get_channels(struct mp_log *log,
|
|||||||
if (num_chars == strlen(&line[k])) {
|
if (num_chars == strlen(&line[k])) {
|
||||||
// It's a VDR-style config line.
|
// It's a VDR-style config line.
|
||||||
parse_vdr_par_string(vdr_par_str, ptr);
|
parse_vdr_par_string(vdr_par_str, ptr);
|
||||||
// We still need the special SAT-handling here.
|
// Units in VDR-style config files are divided by 1000.
|
||||||
|
ptr->freq *= 1000UL;
|
||||||
|
ptr->srate *= 1000UL;
|
||||||
switch (delsys) {
|
switch (delsys) {
|
||||||
case SYS_DVBT:
|
case SYS_DVBT:
|
||||||
case SYS_DVBT2:
|
case SYS_DVBT2:
|
||||||
@ -334,9 +336,6 @@ static dvb_channels_list_t *dvb_get_channels(struct mp_log *log,
|
|||||||
if (!DELSYS_IS_SET(delsys_mask, delsys))
|
if (!DELSYS_IS_SET(delsys_mask, delsys))
|
||||||
continue; /* Skip channel. */
|
continue; /* Skip channel. */
|
||||||
|
|
||||||
ptr->freq *= 1000UL;
|
|
||||||
ptr->srate *= 1000UL;
|
|
||||||
|
|
||||||
if (vdr_loc_str[0]) {
|
if (vdr_loc_str[0]) {
|
||||||
// In older vdr config format, this field contained the DISEQc information.
|
// In older vdr config format, this field contained the DISEQc information.
|
||||||
// If it is numeric, assume that's it.
|
// If it is numeric, assume that's it.
|
||||||
|
Loading…
Reference in New Issue
Block a user