[mythtv] [patch] v0.15.1 picture settings on non-tunable channels

Andrew M. Bishop amb at gedanken.demon.co.uk
Sat Jun 5 10:31:57 EDT 2004


Attached is a patch for a problem in mythtv that stops the colour /
hue / contrast and other picture settings from being applied when
recording from the composite card input.

The code that sets the picture settings comes after the code that sets
the card input, tunes to the correct frequency and runs the external
channel changer.  For some reason this tuning code always returns so
that the picture setting code is never executed.  This patch swaps
around the order of these two parts so that the picture settings
always get applied.

-------------- next part --------------
diff -u /home/amb/mythtv/v0.15.1/mythtv/libs/libmythtv/channel.cpp\~ /home/amb/mythtv/v0.15.1/mythtv/libs/libmythtv/channel.cpp
--- /home/amb/mythtv/v0.15.1/mythtv/libs/libmythtv/channel.cpp~	2004-06-05 15:27:00.000000000 +0100
+++ /home/amb/mythtv/v0.15.1/mythtv/libs/libmythtv/channel.cpp	2004-06-05 15:26:16.000000000 +0100
@@ -403,6 +403,16 @@
 
     SetFormat(tvformat);
 
+    curchannelname = chan;
+
+    pParent->SetVideoFiltersForChannel(this, chan);
+    SetContrast();
+    SetColour();
+    SetBrightness();
+    SetHue();
+
+    inputChannel[currentcapchannel] = curchannelname;
+
     // Tune
     if (externalChanger[currentcapchannel].isEmpty())
     {
@@ -421,16 +431,6 @@
     else if (!ChangeExternalChannel(freqid))
         return false;
 
-    curchannelname = chan;
-
-    pParent->SetVideoFiltersForChannel(this, chan);
-    SetContrast();
-    SetColour();
-    SetBrightness();
-    SetHue();
-
-    inputChannel[currentcapchannel] = curchannelname;
-
     return true;
 }
 
-------------- next part --------------

-- 
Andrew.
----------------------------------------------------------------------
Andrew M. Bishop                             amb at gedanken.demon.co.uk
                                      http://www.gedanken.demon.co.uk/


More information about the mythtv-dev mailing list