summaryrefslogtreecommitdiffstats
path: root/stream/dvbin.h
diff options
context:
space:
mode:
authorOliver Freyermuth <o.freyermuth@googlemail.com>2019-10-01 23:31:17 +0200
committerOliver Freyermuth <o.freyermuth@googlemail.com>2019-10-02 01:25:45 +0200
commitc15ec393dd2b75fa0b7c7f567abd16528e43ce44 (patch)
tree69cb7c176da7a1f1388e6c543d154e549afe5768 /stream/dvbin.h
parent76918be2677306aa037448d5f6c108da6111afac (diff)
downloadmpv-c15ec393dd2b75fa0b7c7f567abd16528e43ce44.tar.bz2
mpv-c15ec393dd2b75fa0b7c7f567abd16528e43ce44.tar.xz
stream_dvb: Factor out logic to determine program and card.
This is now treated in dvb_parse_path consistently instead of logic scattered over various functions. This is a requirement to sensibly re-evaluate config after options have been changed, since we have two ways to configure the stream (decorated URI and config parameters).
Diffstat (limited to 'stream/dvbin.h')
-rw-r--r--stream/dvbin.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/stream/dvbin.h b/stream/dvbin.h
index 979ea208ba..745e77f80a 100644
--- a/stream/dvbin.h
+++ b/stream/dvbin.h
@@ -129,6 +129,9 @@ typedef struct {
dvb_state_t *state;
+ char *prog;
+ int devno;
+
dvb_opts_t *opts;
struct m_config_cache *opts_cache;
} dvb_priv_t;
@@ -181,6 +184,7 @@ typedef struct {
)
#endif
+int dvb_parse_path(stream_t *);
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 *);