[mythtv] DisEqC and dvbchannel-v5.patch

Allan Stirling Dibblahmythml0015 at pendor.org
Thu Sep 8 11:04:10 UTC 2005


Daniel Kristjansson wrote:
> Can you try the latest code?

Err... Don't you mean to do something like this (Not a proper patch - 
There's some other non-related cruft in my dvbchannel.cpp) :

@@ -689,11 +785,12 @@
  {
      fe_status_t status;

      usleep(2000); // yield for 2 ms
      ioctl(fd, FE_READ_STATUS, &status);
      VERBOSE(VB_CHANNEL, toString(status));
-
-    return true;
+    if (status&&FE_HAS_LOCK)
+       return true;
+    return false;
  }

  /** \fn handle_diseq(int, const DVBTuning&, DVBDiSEqC*, bool)
@@ -725,7 +822,8 @@
                    "Setting Frontend tuning parameters failed.");
              return false;
          }
-        wait_for_backend(fd_frontend);
+        if (wait_for_backend(fd_frontend))
+            havetuned=true;
      }



More information about the mythtv-dev mailing list