[vlc-devel] [PATCH] ISDB-S was not working.
Rémi Denis-Courmont
remi at remlab.net
Mon Jun 10 18:35:56 CEST 2013
Hello,
Le samedi 8 juin 2013 22:50:01, HIRANO Takahito a écrit :
> Signed-off-by: HIRANO Takahito <hiranotaka at zng.info>
> ---
> modules/access/dtv/access.c | 2 +-
> modules/access/dtv/linux.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/modules/access/dtv/access.c b/modules/access/dtv/access.c
> index 2de8740..fd1e9b9 100644
> --- a/modules/access/dtv/access.c
> +++ b/modules/access/dtv/access.c
> @@ -950,7 +950,7 @@ static int isdbs_setup (vlc_object_t *obj, dvb_device_t
> *dev, uint64_t freq) uint16_t ts_id = var_InheritInteger (obj,
> "dvb-ts-id");
>
> int ret = dvb_set_isdbs (dev, freq, ts_id);
> - if (ret == 0)
> + if (ret < 0)
> ret = sec_setup (obj, dev, freq);
That does not seem right. Why would you configure the satelite equipment if,
and only if, tuning failed?
> > return ret;
> }
> diff --git a/modules/access/dtv/linux.c b/modules/access/dtv/linux.c
> index cb3315f..ce88747 100644
> --- a/modules/access/dtv/linux.c
> +++ b/modules/access/dtv/linux.c
> @@ -1035,7 +1035,7 @@ int dvb_set_isdbs (dvb_device_t *d, uint64_t freq_Hz,
> uint16_t ts_id)
>
> if (dvb_find_frontend (d, ISDB_S))
> return -1;
> - return dvb_set_props (d, 5, DTV_CLEAR, 0, DTV_DELIVERY_SYSTEM,
> SYS_ISDBS,
> + return dvb_set_props (d, 4, DTV_CLEAR, 0,
> DTV_DELIVERY_SYSTEM, SYS_ISDBS, DTV_FREQUENCY, freq,
> #if DVBv5(8)
> DTV_STREAM_ID,
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list