[mythtv] Recordings fail due to switching channel which it thinks failed (Solved!)

Chris Moore zmower at ntlworld.com
Mon Mar 13 00:17:09 UTC 2006


Hi,

I think I've found my problem.  frequid is passed to 
ChangeExternalChannel instead of chan in channel.cpp.  I could change 
freqid in the database but that doesn't feel right (I have a cable box 
with a red remote channel changer) so I made this code change:


===================================================================
--- libs/libmythtv/channel.cpp  (revision 9318)
+++ libs/libmythtv/channel.cpp  (working copy)
@@ -543,7 +543,7 @@
                  return false;
          }
      }
-    else if (!ChangeExternalChannel(freqid))
+    else if (!ChangeExternalChannel(chan))
          return false;

      QString min_maj = QString("%1_0").arg(chan);


Cheers,
Chris

Chris Moore wrote:
> Hi,
> 
> This log describes a failed recording scheduled for 6.30pm:
> 
> 2006-03-02 18:30:03.175 TVRec(1): Changing from None to RecordingOnly
> 2006-03-02 18:30:03.187 Channel(/dev/video0) Error: SetInputAndFormat(0, 
> PAL-M)
>                          while setting format (v4l v2)
>                          eno: Invalid argument (22)
> 2006-03-02 18:30:03.189 Channel(/dev/video0): SetInputAndFormat(0, PAL-M)
>                          Setting video mode with v4l version 1 worked
> 2006-03-02 18:30:04.270 ret_pid(4457) child(4457) status(0xb)
> 2006-03-02 18:30:04.272 ChannelBase: external tuning program encountered 
> error 0 -- Success
> 2006-03-02 18:30:04.273 TVRec(1) Error: Failed to set channel to 3. 
> Reverting to kState_None
> 2006-03-02 18:30:04.274 TVRec(1): Changing from RecordingOnly to None
> 2006-03-02 18:30:04.294 Finished recording ITV Evening News: channel 1006
> 2006-03-02 18:30:04.304 Started recording: ITV Evening News: channel 
> 1006 on cardid 1, sourceid 1
> 2006-03-02 18:30:05.310 Reschedule requested for id 0.
> 2006-03-02 18:30:05.683 Scheduled 15 items in 0.4 = 0.00 match + 0.37 place
> 
> 
> error 0 - Success!  I'm using a hacked version of the redremote IR 
> channel changer.  The exit status is zero.  Should it return a different 
> status or is this a bug?
> 
> I'm using the 0.19-0.3 debs.  EPIA M6000 with a PVR-250.
> 
> TIA,
> 
> Chris Moore
> 


-- 
--
Sig pending!


More information about the mythtv-dev mailing list