[linux-dvb] [PATCH]Fix a bug in scan, which outputs the wrong frequency if the current tuned transponder is scanned only
Alex Betis
alex.betis at gmail.com
Wed Dec 3 22:28:42 CET 2008
2008/12/3 <e9hack at googlemail.com>
> 2008/12/3 e9hack <e9hack at googlemail.com>
>
>> For the current transponder scanning, it isn't set any filter for NIT
>> parsing. Since the
>> output format is zap and vdr only, it must be always setup a NIT filter:
>>
>> diff -r 51eceb97c3bd scan.c
>> --- a/scan.c Mon Dec 01 23:36:50 2008 +0200
>> +++ b/scan.c Wed Dec 03 18:04:10 2008 +0100
>> @@ -2495,7 +2503,7 @@ static void scan_tp_dvb (void)
>> add_filter (&s0);
>> add_filter (&s1);
>>
>> - if (!current_tp_only) {
>> + if (/*!current_tp_only*/1) {
>> setup_filter (&s2, demux_devname, PID_NIT_ST,
>> TID_NIT_ACTUAL, -1, 1, 0,
>> 15); /* NIT */
>> add_filter (&s2);
>> if (get_other_nits) {
>>
>
> I forgot, frequency and modulation are wrong as in the original scan
> application. The values are from last parsed NIT entry, which isn't from the
> current transponder.
There is no need for NIT message. I've added query from driver for currently
tuned parameters - should work for DVB-T and DVB-C users. DVB-S/S2 will get
IF frequency, which is not the real transponder frequency.
Please update to latest version.
Your other patch for DVB-C scan is also there.
Let me know if it helps.
Regards,
Alex.
>
>
> Regards,
> Hartmut
>
> _______________________________________________
> linux-dvb mailing list
> linux-dvb at linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.linuxtv.org/pipermail/linux-dvb/attachments/20081203/5cdfd944/attachment.htm
More information about the linux-dvb
mailing list