[vlc-commits] dtv multisat: Set dvb_diseqc_master_cmd command length.

Zoran Turalija git at videolan.org
Fri Aug 10 18:19:16 CEST 2012


vlc/vlc-2.0 | branch: master | Zoran Turalija <zoran.turalija at gmail.com> | Fri Aug 10 17:13:09 2012 +0200| [8ca3eb9b8c63e6f7f817bc53717a96c7cbb24538] | committer: Rémi Denis-Courmont

dtv multisat: Set dvb_diseqc_master_cmd command length.

FE_DISEQC_SEND_MASTER_CMD will fail if command length is not set,
preventing multi-satellite tunning using DiSEqC switch.

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit cfb1f18ec5543abfa35050600377548b69e6907a)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=8ca3eb9b8c63e6f7f817bc53717a96c7cbb24538
---

 modules/access/dtv/linux.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/access/dtv/linux.c b/modules/access/dtv/linux.c
index 3208139..2060e9f 100644
--- a/modules/access/dtv/linux.c
+++ b/modules/access/dtv/linux.c
@@ -703,6 +703,7 @@ known:
                    | ((voltage == SEC_VOLTAGE_18) << 1) /* polarization */
                    | (tone == SEC_TONE_ON); /* option */
         cmd.msg[4] = cmd.msg[5] = 0; /* unused */
+        cmd.msg_len = 4; /* length*/
         msleep (15000); /* wait 15 ms before DiSEqC command */
         if (ioctl (d->frontend, FE_DISEQC_SEND_MASTER_CMD, &cmd) < 0)
         {



More information about the vlc-commits mailing list