From c15ec393dd2b75fa0b7c7f567abd16528e43ce44 Mon Sep 17 00:00:00 2001 From: Oliver Freyermuth Date: Tue, 1 Oct 2019 23:31:17 +0200 Subject: 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). --- stream/dvbin.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'stream/dvbin.h') 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 *); -- cgit v1.2.3