]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Only send EMM once per cwc
authorSarge <hts.sarge@gmail.com>
Wed, 18 Nov 2009 19:33:51 +0000 (19:33 +0000)
committerSarge <hts.sarge@gmail.com>
Wed, 18 Nov 2009 19:33:51 +0000 (19:33 +0000)
src/cwc.c

index c5aaecfdf0ef995bbce17a6f4c083367436efbe2..ca18685ccb4addf22897a61b6136e7aeb8b16b54 100644 (file)
--- a/src/cwc.c
+++ b/src/cwc.c
@@ -970,8 +970,10 @@ cwc_emm(uint8_t *data, int len)
        cwc->cwc_caid == 0x0b00 && data[0] == 0x82 /* Conax */ ) {
       int i;
       for (i=0; i < cwc->cwc_num_providers; i++)
-       if (memcmp(&data[3], &cwc->cwc_providers[i].sa[1], 7) == 0)
+       if (memcmp(&data[3], &cwc->cwc_providers[i].sa[1], 7) == 0) {
          cwc_send_msg(cwc, data, len, 0, 1);
+         break;
+       }
     }
 }