[vlc-commits] DTV: wire ACCESS_SET_PRIVATE_ID_CA (forgotten in previous commit)

Rémi Denis-Courmont git at videolan.org
Wed May 11 21:47:18 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed May 11 22:46:57 2011 +0300| [4fd5cd509cb77996e099834ed6eb3572a11fb080] | committer: Rémi Denis-Courmont

DTV: wire ACCESS_SET_PRIVATE_ID_CA (forgotten in previous commit)

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

 modules/access/dtv/access.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/modules/access/dtv/access.c b/modules/access/dtv/access.c
index 93fc0e4..836af90 100644
--- a/modules/access/dtv/access.c
+++ b/modules/access/dtv/access.c
@@ -503,8 +503,14 @@ static int Control (access_t *access, int query, va_list args)
         }
 
         case ACCESS_SET_PRIVATE_ID_CA:
-            /* TODO */
-            return VLC_EGENERIC;
+#ifdef HAVE_DVBPSI
+        {
+            struct dvbpsi_pmt_s *pmt = va_arg (args, struct dvbpsi_pmt_s *);
+
+            dvb_set_ca_pmt (dev, pmt);
+            return VLC_SUCCESS;
+        }
+#endif
 
         case ACCESS_GET_PRIVATE_ID_STATE:
             return VLC_EGENERIC;



More information about the vlc-commits mailing list