[dvblast-devel] en50221: fix spurious error messages

Christophe Massiot git at videolan.org
Mon Sep 7 19:26:49 CEST 2015


dvblast | branch: master | Christophe Massiot <cmassiot at openheadend.tv> | Mon Sep  7 19:26:37 2015 +0200| [559672761284dfbd78450bda85e95a3ccb755d6f] | committer: Christophe Massiot

en50221: fix spurious error messages

> http://git.videolan.org/gitweb.cgi/dvblast.git/?a=commit;h=559672761284dfbd78450bda85e95a3ccb755d6f
---

 en50221.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/en50221.c b/en50221.c
index 8a93d14..792d48a 100644
--- a/en50221.c
+++ b/en50221.c
@@ -1949,6 +1949,9 @@ static void ResetSlotCb(struct ev_loop *loop, struct ev_timer *w, int revents)
     ci_slot_t *p_slot = container_of(w, ci_slot_t, init_watcher);
     int i_slot = p_slot - &p_slots[0];
 
+    if ( p_slot->b_active || !p_slot->b_expect_answer )
+        return;
+
     msg_Warn( NULL, "no answer from CAM, resetting slot %d",
               i_slot );
     switch (i_print_type) {



More information about the dvblast-devel mailing list