summaryrefslogtreecommitdiffstats
path: root/stream/dvbin.h
diff options
context:
space:
mode:
authorOliver Freyermuth <o.freyermuth@googlemail.com>2019-10-01 01:46:07 +0200
committerOliver Freyermuth <o.freyermuth@googlemail.com>2019-10-02 01:25:45 +0200
commit76918be2677306aa037448d5f6c108da6111afac (patch)
tree9ab5b071c20ef7edd380ba5785dbf0161ee8de86 /stream/dvbin.h
parent86c229fedec060cfd0e01d8440baadda6354d8a9 (diff)
downloadmpv-76918be2677306aa037448d5f6c108da6111afac.tar.bz2
mpv-76918be2677306aa037448d5f6c108da6111afac.tar.xz
stream_dvb: Use separated out options struct.
This also allows the use of m_config_cache_alloc which allows to watch config updates.
Diffstat (limited to 'stream/dvbin.h')
-rw-r--r--stream/dvbin.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/stream/dvbin.h b/stream/dvbin.h
index 01a70588a5..979ea208ba 100644
--- a/stream/dvbin.h
+++ b/stream/dvbin.h
@@ -117,16 +117,20 @@ typedef struct {
} dvb_state_t;
typedef struct {
- struct mp_log *log;
-
- dvb_state_t *state;
-
char *cfg_prog;
int cfg_devno;
int cfg_timeout;
char *cfg_file;
-
int cfg_full_transponder;
+} dvb_opts_t;
+
+typedef struct {
+ struct mp_log *log;
+
+ dvb_state_t *state;
+
+ dvb_opts_t *opts;
+ struct m_config_cache *opts_cache;
} dvb_priv_t;
@@ -177,7 +181,6 @@ typedef struct {
)
#endif
-
int dvb_step_channel(stream_t *, int);
int dvb_set_channel(stream_t *, unsigned int, unsigned int);
dvb_state_t *dvb_get_state(stream_t *);