[linux-dvb] patch - descrambling on stream level

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have also made a little patch to make czap have the same exit options
as tzap and szap.

/Per

Per Dal?n wrote:
> The patch worked fine with my Twinhan DVB-Cab CI card. The only thing I
> changed to get it work was to stop the loop in parse_cab_channel_list in
> the same manner as the parse_ter_channel_list and parse_sat_channel_list.
> 
> /Per
> 
> Henrik Sjoberg wrote:
> 
>>Hi,
>>
>>This is a bit embarrassing, but my latest patch contained pmt test code,
>>which caused it not to work. I have prepared another one (third one's a
>>charm?) which I have actually tested against cvs dvb-apps. It works ok for
>>me.
>>
>>Regards,
>>Henrik
>>
>>
>>
>>>Thank you for pointing that out. Also, Manu asked for a unified patch
>>>instead of a context patch. So, one more time, a unified version with the
>>>correct line numbers.
>>>
>>>Regards,
>>>Henrik
>>>
>>>
>>>
>>>>On Mon, Oct 17, 2005 at 11:28:33PM +0200, Henrik Sjoberg wrote:
>>>>
>>>>
>>>>
>>>>>And please let me know how it works for you all. Would be nice to know
>>>>>if
>>>>>I have fixed descrambling for anyone...
>>>>
>>>>It did, indeed, fix it for me. All of the CA channels I have
>>>>access to (which are the six channels by swiss national TV) are
>>>>being descrambled correctly now.
>>>>
>>>>Thank you very much for this great job!
>>>>
>>>>
>>>>
>>>>I cannot really comment on the "-m" option, other than that it
>>>>produces a significantly shorter "CA MESSAGE", which seems to
>>>>work as well for the descrambling as without the -m.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>There seems to be a minor glitch in the patch, however, that
>>>>caused "patch" to fail initially with the error message
>>>>
>>>>patch: **** unexpected end of hunk at line 566
>>>>
>>>>After changing line 526 (where the hunk boundaries were defined)
>>>>to read "--- 298,336 ----" instead of "--- 298,481 ----", patch
>>>>didn't complain anymore and the resulting code compiled correctly
>>>>and works now.
>>>>
>>>>
>>>>--
>>>>Andreas Trottmann
>>>>Werft22 AG
>>>>Tel    +41 (0)56 210 91 37
>>>>Fax    +41 (0)56 210 91 34
>>>>Mobile +41 (0)79 229 88 55
>>>>
>>>>_______________________________________________
>>>>
>>>>linux-dvb@xxxxxxxxxxx
>>>>http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
>>>>
>>>
>>>_______________________________________________
>>>
>>>linux-dvb@xxxxxxxxxxx
>>>http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
>>>
>>>
>>>------------------------------------------------------------------------
>>>
>>>_______________________________________________
>>>
>>>linux-dvb@xxxxxxxxxxx
>>>http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
> 
> 
> 
> ------------------------------------------------------------------------
> 
> Index: lib/libdvbsi/channels.c
> ===================================================================
> RCS file: /cvs/linuxtv/dvb-apps/lib/libdvbsi/channels.c,v
> retrieving revision 1.1
> diff -u -b -B -r1.1 channels.c
> --- lib/libdvbsi/channels.c	22 Jun 2005 15:34:59 -0000	1.1
> +++ lib/libdvbsi/channels.c	18 Oct 2005 20:33:40 -0000
> @@ -191,6 +191,11 @@
>  		p_channel_params->video_pid = strtoul((strtok('\0', ":")), NULL, 0);
>  		p_channel_params->audio_pid = strtoul((strtok('\0', ":")), NULL, 0);
>  		p_channel_params->service_id = strtoul((strtok('\0', ":")), NULL, 0); // The old format does not have it !
> +		if (!strcmp(channel_name, p_channel_params->channel)) {
> +			printf("%s: Channel=[%s], Frequency=[%d], Video=[%d], Audio=[%d], Service=[%d]\n",
> +				__FUNCTION__, p_channel_params->channel, p_channel_params->frequency, p_channel_params->video_pid, p_channel_params->audio_pid, p_channel_params->service_id);
> +			break;
> +		}
>  	}
>  
>  	return 0;
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 
> linux-dvb@xxxxxxxxxxx
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

-------------- next part --------------
A non-text attachment was scrubbed...
Name: czap_exit.patch
Type: text/x-patch
Size: 1599 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/linux-dvb/attachments/20051018/147036a0/czap_exit.bin

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux