]> git.sesse.net Git - vlc/commitdiff
en50221: Increase MAX_CASYSTEM_IDS to 64 and fix inverted logic
authorMarian Ďurkovič <md@bts.sk>
Tue, 27 Oct 2009 18:26:45 +0000 (19:26 +0100)
committerMarian Ďurkovič <md@bts.sk>
Tue, 27 Oct 2009 18:26:45 +0000 (19:26 +0100)
As reported on forum, Powercam Pro returns 38 system IDs

modules/access/dvb/en50221.c

index ccd435383ffcef835c0518c5fcd24b8a0f0ec61b..bc8122576f1df6f6f497ed8f6976b5540ceece06 100644 (file)
@@ -963,7 +963,7 @@ static void ApplicationInformationOpen( access_t * p_access, int i_session_id )
  * Conditional Access
  */
 
-#define MAX_CASYSTEM_IDS 16
+#define MAX_CASYSTEM_IDS 64
 
 typedef struct
 {
@@ -973,7 +973,7 @@ typedef struct
 static bool CheckSystemID( system_ids_t *p_ids, uint16_t i_id )
 {
     int i = 0;
-    if( !p_ids ) return true;
+    if( !p_ids ) return false;
 
     while ( p_ids->pi_system_ids[i] )
     {