[vlc-devel] [PATCH 2/2] dtv multisat: Initialize dvb_diseqc_master_cmd correctly.
Rémi Denis-Courmont
remi at remlab.net
Fri Aug 10 16:15:19 CEST 2012
On Fri, 10 Aug 2012 15:59:07 +0200, Zoran Turalija
<zoran.turalija at gmail.com> wrote:
> If not initialized correctly, FE_DISEQC_SEND_MASTER_CMD will fail,
> so no DiSEqC switch will occur, preventig multi-satellite tunning.
> ---
> modules/access/dtv/linux.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/modules/access/dtv/linux.c b/modules/access/dtv/linux.c
> index fbc771b..28f2069 100644
> --- a/modules/access/dtv/linux.c
> +++ b/modules/access/dtv/linux.c
> @@ -774,7 +774,8 @@ known:
> {
> /* DiSEqC 1.0 */
> #undef msleep /* we know what we are doing! */
> - struct dvb_diseqc_master_cmd cmd;
> + struct dvb_diseqc_master_cmd cmd =
> + { {0xE0, 0x10, 0x38, 0xF0, 0x00, 0x00}, 4};
That's a lot of duplication just to set cmd.msg_len = 4.
--
Rémi Denis-Courmont
Sent from my collocated server
More information about the vlc-devel
mailing list