From 9f2da1c94ca6f2aa68024055742bd2853b070e29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Fri, 2 May 2008 15:43:34 +0000 Subject: [PATCH] Fix bug in error tracking --- serviceprobe.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/serviceprobe.c b/serviceprobe.c index 93bb52b6..eb4b02a7 100644 --- a/serviceprobe.c +++ b/serviceprobe.c @@ -90,7 +90,7 @@ sp_timeout(void *aux, int64_t now) errtxt = "Ok"; break; case -1: - errtxt = "Timeout, no video seen"; + errtxt = "Timeout, no video detected"; break; case TRANSPORT_ERROR_NO_DESCRAMBLER: errtxt = "No descrambler for stream"; @@ -137,7 +137,7 @@ sp_err_callback(struct th_subscription *s, int errorcode, void *opaque) sp_t *sp = opaque; s->ths_err_callback = NULL; - sp->sp_error = -1; + sp->sp_error = errorcode; dtimer_arm(&sp->sp_timer, sp_timeout, sp, 0); } @@ -160,6 +160,7 @@ serviceprobe_engage(void) sp = calloc(1, sizeof(sp_t)); sp->sp_s = s = calloc(1, sizeof(th_subscription_t)); + sp->sp_error = -1; s->ths_title = "probe"; s->ths_weight = INT32_MAX; s->ths_opaque = sp;