]> git.sesse.net Git - vlc/commitdiff
linux_dvb.c: hopefully fixed CAM support for some cards (full feature cards?)
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Mon, 3 Apr 2006 16:41:03 +0000 (16:41 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Mon, 3 Apr 2006 16:41:03 +0000 (16:41 +0000)
modules/access/dvb/linux_dvb.c

index af452ad87584a606404a66dd4d856ed7b17cf54c..15e3e32bf9797bafac4a154900bad9e3b7108f37 100644 (file)
@@ -1422,10 +1422,16 @@ int E_(CAMOpen)( access_t *p_access )
         return VLC_EGENERIC;
     }
 
-    p_sys->i_ca_type = caps.slot_type;
-    if ( !(caps.slot_type & CA_CI_LINK) &&
-         !(caps.slot_type & CA_CI) )
+    if( caps.slot_type & CA_CI_LINK )
     {
+        p_sys->i_ca_type = CA_CI_LINK;
+    }
+    else if( caps.slot_type & CA_CI )
+    {
+        p_sys->i_ca_type = CA_CI;
+    }
+    else {
+        p_sys->i_ca_type = -1;
         msg_Err( p_access, "CAMInit: incompatible CAM interface" );
         close( p_sys->i_ca_handle );
         p_sys->i_ca_handle = 0;