[dvblast-devel] [git at videolan.org: [vlc-devel] commit: en50221: Provide compile-time option for slow CAMs ( Marian Ďurkovič )]

Marian Ďurkovič md at bts.sk
Thu Oct 29 08:45:45 CET 2009


Hi,

  we need this for DVBlast as well.

     With kind regards,

       M.

----- Forwarded message from git version control <git at videolan.org> -----

From: git at videolan.org (git version control)
Date: Thu, 29 Oct 2009 08:26:24 +0100 (CET)
To: vlc-devel at videolan.org
Subject: [vlc-devel] commit: en50221: Provide compile-time option for slow CAMs ( Marian Ďurkovič )

vlc | branch: master | Marian Ďurkovič <md at bts.sk> | Thu Oct 29 08:26:04 2009 +0100| [6db314c162397a731b9d5d160731cd515819c35b] | committer: Marian Ďurkovič 

en50221: Provide compile-time option for slow CAMs

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

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

diff --git a/modules/access/dvb/en50221.c b/modules/access/dvb/en50221.c
index bc81225..2f16fd4 100644
--- a/modules/access/dvb/en50221.c
+++ b/modules/access/dvb/en50221.c
@@ -79,6 +79,7 @@
 #undef DEBUG_TPDU
 #define HLCI_WAIT_CAM_READY 0
 #define CAM_PROG_MAX MAX_PROGRAMS
+//#define CAPMT_WAIT 100             /* uncomment this for slow CAMs */
 
 static void ResourceManagerOpen( access_t * p_access, int i_session_id );
 static void ApplicationInformationOpen( access_t * p_access, int i_session_id );
@@ -973,7 +974,7 @@ typedef struct
 static bool CheckSystemID( system_ids_t *p_ids, uint16_t i_id )
 {
     int i = 0;
-    if( !p_ids ) return false;
+    if( !p_ids ) return true;      /* dummy session for high-level CI intf */
 
     while ( p_ids->pi_system_ids[i] )
     {
@@ -1243,6 +1244,9 @@ static void CAPMTAdd( access_t * p_access, int i_session_id,
         return;
     }
  
+#ifdef CAPMT_WAIT
+    msleep( CAPMT_WAIT * 1000 );
+#endif
  
     msg_Dbg( p_access, "adding CAPMT for SID %d on session %d",
              p_pmt->i_program_number, i_session_id );



More information about the dvblast-devel mailing list