Mailing List Archive

Patch for setup main.cpp
This patch adds an explicit user prompt if the setup program was unable
to probe for tv capture card inputs.

Point of divergence for this patch is the 0.7 CVS tarball.

-Dan

--- cvs/MC/setup/main.cpp 2002-10-31 14:28:25.000000000 -0500
+++ /usr/local/src/mythtv/MC/setup/main.cpp 2002-11-18
13:36:20.000000000 -0500
@@ -302,6 +302,13 @@
QStringList inputlist = probeCard(videodev);
QStringList::Iterator it;

+ if (inputlist.isEmpty())
+ {
+ cout << "\nSetup could not detect any capture card
inputs.\nThis will prevent mythTV from running properly.\n\n";
+ if ("y" == getResponse("Exit setup and correct this
problem?", "y"))
+ exit(1);
+ }
+
for (it = inputlist.begin(); it != inputlist.end(); ++it)
{
selectSource(idnum, videodev, *it, sourcelist);