Browse Source

notify: Added NO_EMM_RECEIVED event.

Georgi Chorbadzhiyski 12 years ago
parent
commit
00fade927f
3 changed files with 7 additions and 0 deletions
  1. 1
    0
      ChangeLog
  2. 2
    0
      tsdecrypt.1
  3. 4
    0
      tsdecrypt.c

+ 1
- 0
ChangeLog View File

@@ -5,6 +5,7 @@ now : Version next
5 5
  * Fixed newcamd protocol issues when OSCAM disappeared.
6 6
  * Fix (and optimize) decryption when the input is MPTS. Previously
7 7
    decrypting one stream broke the others.
8
+ * notify: Add NO_EMM_RECEIVED event.
8 9
 
9 10
 2012-02-24 : Version 6.0
10 11
  * Add --output-tos (-g) option used to set output TOS value.

+ 2
- 0
tsdecrypt.1 View File

@@ -245,6 +245,8 @@ currently defined events are:
245 245
                   decryption process have been suspended until valid
246 246
                   code word is received.
247 247
 
248
+  \fBNO_EMM_RECEIVED\fR    No EMM packet have been received for X seconds.
249
+
248 250
   \fBINPUT_TIMEOUT\fR   There was no data on the input.
249 251
 
250 252
   \fBINPUT_OK\fR        The data have appeared on the input.

+ 4
- 0
tsdecrypt.c View File

@@ -656,6 +656,10 @@ static void report_emms(struct ts *ts, time_t now) {
656 656
 		ts->emm_seen_count,
657 657
 		ts->emm_processed_count,
658 658
 		now - ts->emm_last_report);
659
+	if (ts->emm_seen_count == 0) {
660
+		notify(ts, "NO_EMM_RECEIVED", "No EMMs were received in last %lu seconds.",
661
+			now - ts->emm_last_report);
662
+	}
659 663
 	ts->emm_last_report = now;
660 664
 	ts->emm_seen_count = 0;
661 665
 	ts->emm_processed_count = 0;

Loading…
Cancel
Save