[dvblast-devel] Fw: [vlc-devel] commit: en50221: Increase MAX_CASYSTEM_IDS to 64 and fix inverted logic ( Marian Ďurkovič )

Marian Ďurkovič md at bts.sk
Tue Oct 27 19:36:27 CET 2009


Hi,

   we need this for DVBlast as well. Based on report at:

http://forum.videolan.org/viewtopic.php?f=4&t=66972

   With kind regards,

       M.


---------- Forwarded Message -----------
From: git at videolan.org (git version control)
To: vlc-devel at videolan.org
Sent: Tue, 27 Oct 2009 19:27:04 +0100 (CET)
Subject: [vlc-devel] commit: en50221: Increase MAX_CASYSTEM_IDS to 64 and fix
inverted logic ( Marian Ďurkovič )

vlc | branch: master | Marian Ďurkovič <md at bts.sk> | Tue Oct 27 19:26:45 2009
+0100| [0b63b79124ccaa4ccf861b72d3bb6c19bb804606] | committer: Marian Ďurkovič

en50221: Increase MAX_CASYSTEM_IDS to 64 and fix inverted logic
As reported on forum, Powercam Pro returns 38 system IDs

>
http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0b63b79124ccaa4ccf861b72d3bb6c19bb804606
---

 modules/access/dvb/en50221.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/access/dvb/en50221.c b/modules/access/dvb/en50221.c
index ccd4353..bc81225 100644
--- a/modules/access/dvb/en50221.c
+++ b/modules/access/dvb/en50221.c
@@ -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] )
     {




More information about the dvblast-devel mailing list