From 25089191511856ae5d59e628bee867b6b1c618cb Mon Sep 17 00:00:00 2001 From: Ralph Metzler Date: Thu, 14 Mar 2019 12:44:21 +0100 Subject: [PATCH] change attach handling --- ddbridge/ddbridge-core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ddbridge/ddbridge-core.c b/ddbridge/ddbridge-core.c index 5ff1b18..afb73c7 100644 --- a/ddbridge/ddbridge-core.c +++ b/ddbridge/ddbridge-core.c @@ -1524,6 +1524,7 @@ static void dvb_input_detach(struct ddb_input *input) case 0x41: if (dvb->fe2) dvb_unregister_frontend(dvb->fe2); + /* fallthrough */ case 0x40: if (dvb->fe) dvb_unregister_frontend(dvb->fe); @@ -1843,8 +1844,8 @@ static int dvb_input_attach(struct ddb_input *input) memcpy(&dvb->fe2->ops.tuner_ops, &dvb->fe->ops.tuner_ops, sizeof(struct dvb_tuner_ops)); + dvb->attached = 0x41; } - dvb->attached = 0x41; return 0; }