Opened 14 years ago

Closed 13 years ago

Last modified 13 years ago

#11298 closed Bug Report - General (fixed)

Changeset be8dd3067b broke working of DVB-C cam module

Reported by: gemma.daan@… 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)

dvbci.cpp.patch (673 bytes ) - added by klaas.de.waal@… 13 years ago.
Call Tc->Poll() outside if statement and ignore function value.

Download all attachments as: .zip

Change History (9)

comment:1 by Daniel Kristjansson <danielk@…>, 14 years ago

Resolution: fixed
Status: newclosed

In 40ff97370a7d7ad115c1f700131ff5464c34a484/mythtv:

Error: Processor CommitTicketReference failed
GIT backend not available

comment:2 by Daniel Kristjansson <danielk@…>, 14 years ago

In a7e8f7f363939864ed4b1c971f807b8c24aa324d/mythtv:

Error: Processor CommitTicketReference failed
GIT backend not available

comment:3 by Raymond Wagner, 14 years ago

Milestone: unknown0.27

comment:4 by klaas.de.waal@…, 13 years ago

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.

by klaas.de.waal@…, 13 years ago

Attachment: dvbci.cpp.patch added

Call Tc->Poll() outside if statement and ignore function value.

comment:5 by klaas.de.waal@…, 13 years ago

Resolution: fixed
Status: closednew

comment:6 by Klass De Waal <klaas.de.waal@…>, 13 years ago

Resolution: fixed
Status: newclosed

In 848e405d6c10ec9dcec360bb92b3485a2504129f/mythtv:

Error: Processor CommitTicketReference failed
GIT backend not available

comment:7 by Klass De Waal <klaas.de.waal@…>, 13 years ago

In faffb0f22be12c0405852f5ddccfa64b6f128049/mythtv:

Error: Processor CommitTicketReference failed
GIT backend not available

comment:8 by crazy.bombz@…, 13 years ago

Has this been fixed yet? My CAM is not working with 0.27 but worked fine as soon as I reverted to 0.26.

Note: See TracTickets for help on using tickets.