summaryrefslogtreecommitdiffstats
path: root/stream/dvbin.h
diff options
context:
space:
mode:
authorrim <rozhuk.im@gmail.com>2017-12-15 15:37:30 +0300
committerKevin Mitchell <kevmitch@gmail.com>2017-12-16 23:24:55 -0800
commit04d04033e66934b9799d52c80515908e29daa2dc (patch)
treec00ea5b71cb7a063630b74a419a7b9df70e9ebaa /stream/dvbin.h
parent3c4667c862dba05d89d0fd24a198bb49c8c47cb8 (diff)
downloadmpv-04d04033e66934b9799d52c80515908e29daa2dc.tar.bz2
mpv-04d04033e66934b9799d52c80515908e29daa2dc.tar.xz
dvb: Add multiple frontends support: MAX_FRONTENDS now 8.
Diffstat (limited to 'stream/dvbin.h')
-rw-r--r--stream/dvbin.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/stream/dvbin.h b/stream/dvbin.h
index 284ccbd450..01a70588a5 100644
--- a/stream/dvbin.h
+++ b/stream/dvbin.h
@@ -26,6 +26,9 @@
#include <linux/dvb/audio.h>
#include <linux/dvb/version.h>
+#define MAX_ADAPTERS 16
+#define MAX_FRONTENDS 8
+
#undef DVB_ATSC
#if defined(DVB_API_VERSION_MINOR)
@@ -69,7 +72,8 @@ typedef struct {
unsigned int freq, srate, diseqc;
char pol;
unsigned int tpid, dpid1, dpid2, progid, ca, pids[DMX_FILTER_SIZE], pids_cnt;
- bool is_dvb_x2;
+ bool is_dvb_x2; /* Used only in dvb_get_channels() and parse_vdr_par_string(), use delsys. */
+ unsigned int frontend;
unsigned int delsys;
unsigned int stream_id;
unsigned int service_id;
@@ -90,7 +94,7 @@ typedef struct {
typedef struct {
int devno;
- unsigned int delsys_mask;
+ unsigned int delsys_mask[MAX_FRONTENDS];
dvb_channels_list_t *list;
} dvb_adapter_config_t;
@@ -98,6 +102,7 @@ typedef struct {
unsigned int adapters_count;
dvb_adapter_config_t *adapters;
unsigned int cur_adapter;
+ unsigned int cur_frontend;
int fe_fd;
int dvr_fd;