All pastes #491014 Raw Edit

Untitled

public text v1 · immutable
·published 2007-05-16 11:32 UTC
rendered paste body
Index: mythtv/libs/libmythtv/channel.cpp
===================================================================
--- mythtv/libs/libmythtv/channel.cpp   (revision 13456)
+++ mythtv/libs/libmythtv/channel.cpp   (working copy)
@@ -473,15 +473,18 @@
         mplexid = 0;
     }
     bool isFrequency = ok && (frequency > 10000000);
+    bool isFreqid = false;

     // If we are tuning to a freqid, rather than an actual frequency,
     // we need to set the frequency table to use.
-    if (!isFrequency)
+    if (!isFrequency && !freqid.empty())
     {
         if (freqtable == "default" || freqtable.isEmpty())
             SetFreqTable(defaultFreqTable);
         else
             SetFreqTable(freqtable);
+
+        isFreqid = true;
     }

     // Set NTSC, PAL, ATSC, etc.
@@ -497,7 +500,7 @@
                 return false;
             }
         }
-        else
+        else if (isFreqid)
         {
             if (!TuneTo(freqid, finetune))
                 return false;