From ecc5aeb15ace7651376d4ab13b7cf86f07bc9488 Mon Sep 17 00:00:00 2001 From: Ralph Metzler Date: Thu, 1 Aug 2019 21:43:53 +0200 Subject: [PATCH] use correct fd --- lib/src/ca.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/src/ca.c b/lib/src/ca.c index cee3699..f0ef47e 100644 --- a/lib/src/ca.c +++ b/lib/src/ca.c @@ -599,15 +599,14 @@ int dddvb_ca_write(struct dddvb *dd, uint32_t nr, uint8_t *buf, uint32_t len) { struct dddvb_ca *ca = &dd->dvbca[nr]; - return write(ca->wfd, buf, len); + return write(ca->ci_wfd, buf, len); } int dddvb_ca_read(struct dddvb *dd, uint32_t nr, uint8_t *buf, uint32_t len) { struct dddvb_ca *ca = &dd->dvbca[nr]; - return read(ca->rfd, buf, len); - return 0; + return read(ca->ci_rfd, buf, len); } int dddvb_ca_set_pmts(struct dddvb *dd, uint32_t nr, uint8_t **pmts)