Opened 12 years ago
Closed 11 years ago
Last modified 11 years ago
#11298 closed Bug Report - General (fixed)
Changeset be8dd3067b broke working of DVB-C cam module
Reported by: | Owned by: | danielk | |
---|---|---|---|
Priority: | minor | Milestone: | 0.27 |
Component: | MythTV - DVB | Version: | Master Head |
Severity: | high | Keywords: | |
Cc: | Ticket locked: | no |
Description
In changeset be8dd3067b some "dead code" was commented out, unfortunately, this is not really dead code, as the "Tc->Poll()" method also makes sure the CAM module is working.
This changeset causes that encrypted channels can't be recorded any more.
case stACTIVE: if (!Tc->DataAvailable()) { - if (Tc->Poll() != OK) - ;//XXX continue; +// if (Tc->Poll() != OK) +// ;//XXX continue; } switch (Tc->LastResponse()) {
I reverted this change in my local test tree and tested it on my test machine, it restored the working of the CAM module.
Attachments (1)
Change History (9)
comment:1 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 Changed 12 years ago by
Milestone: | unknown → 0.27 |
---|
comment:4 Changed 12 years ago by
The error message added recently results in an endless stream of "E ERROR: Poll Error" messages, about 10 per second, in my otherwise correctly working system.
The reason for this is that the "Tc->Poll()" method can also returns a value " != OK " when there is nothing wrong.
The way I understand it is that the function must be called and that the function value should be ignored. This is the way the code has been working in the last few years. Apparently the reason to change the code has been to remove compiler warnings.
I think that to achieve this the function must not be called inside the "if" statement.
I will attach a trivial patch for this.
Changed 12 years ago by
Attachment: | dvbci.cpp.patch added |
---|
Call Tc->Poll() outside if statement and ignore function value.
comment:5 Changed 12 years ago by
Resolution: | fixed |
---|---|
Status: | closed → new |
comment:6 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:8 Changed 11 years ago by
Has this been fixed yet? My CAM is not working with 0.27 but worked fine as soon as I reverted to 0.26.
In 40ff97370a7d7ad115c1f700131ff5464c34a484/mythtv: