[vlc-commits] dtv: More detailed DiSEqC error messages.

Zoran Turalija git at videolan.org
Sat Mar 30 09:54:28 CET 2013


vlc | branch: master | Zoran Turalija <zoran.turalija at gmail.com> | Sat Mar 30 08:52:18 2013 +0100| [ba07b415f47044b053132e8f19bfb76b2cc4e0d3] | committer: Rémi Denis-Courmont

dtv: More detailed DiSEqC error messages.

Error messages were reused from time when there was no uncommitted
switch support. Now we have support for this feature, and we can
supply better error messages, because we know in more details what
has happened at times when error occured.

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 modules/access/dtv/linux.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/modules/access/dtv/linux.c b/modules/access/dtv/linux.c
index 7f3de92..cb3315f 100644
--- a/modules/access/dtv/linux.c
+++ b/modules/access/dtv/linux.c
@@ -810,21 +810,22 @@ known:
           uncmd.msg_len = 4; /* length */
           if (ioctl (d->frontend, FE_DISEQC_SEND_MASTER_CMD, &uncmd) < 0)
           {
-              msg_Err (d->obj, "cannot send DiSEqC command: %m");
+              msg_Err (d->obj, "cannot send uncommitted DiSEqC command: %m");
               return -1;
           }
           /* Repeat uncommitted command */
           uncmd.msg[0] = 0xE1; /* framing: master, no reply, repeated TX */
           if (ioctl (d->frontend, FE_DISEQC_SEND_MASTER_CMD, &uncmd) < 0)
           {
-              msg_Err (d->obj, "cannot send DiSEqC command: %m");
+              msg_Err (d->obj,
+                       "cannot send repeated uncommitted DiSEqC command: %m");
               return -1;
           }
           msleep(125000); /* wait 125 ms before committed DiSEqC command */
         }
         if (ioctl (d->frontend, FE_DISEQC_SEND_MASTER_CMD, &cmd) < 0)
         {
-            msg_Err (d->obj, "cannot send DiSEqC command: %m");
+            msg_Err (d->obj, "cannot send committed DiSEqC command: %m");
             return -1;
         }
         msleep (54000 + 15000);



More information about the vlc-commits mailing list