[dvblast-devel] [PATCH 3/4] comm: Add supported for GET_{PAT, CAT, NIT, SDT} commands

Georgi Chorbadzhiyski gf at unixsol.org
Thu Aug 25 22:18:07 CEST 2011


> diff --git a/comm.h b/comm.h
> index 017a96d..58f8828 100644
> --- a/comm.h
> +++ b/comm.h
> @@ -19,8 +19,10 @@
>  #include <linux/dvb/frontend.h>
>  #include <linux/dvb/ca.h>
>  
> -#define COMM_BUFFER_SIZE 4096
> +#include <bitstream/mpeg/psi.h>
> +
>  #define COMM_HEADER_SIZE 4
> +#define COMM_BUFFER_SIZE (COMM_HEADER_SIZE + ((PSI_PRIVATE_MAX_SIZE + PSI_HEADER_SIZE) * PSI_TABLE_MAX_SECTIONS))
>  #define COMM_HEADER_MAGIC 0x48

And of course this will not work because SOCK_DGRAM only allows messages
up to 128k, bigger ones must be broken into pieces.

I'll update the patch tomorrow.

-- 
Georgi Chorbadzhiyski
http://georgi.unixsol.org/


More information about the dvblast-devel mailing list