[mythtv] [mythtv-commits] Ticket #4075: Backend AutoDiscovery improvements

Nigel Pearson nigel at ind.tansu.com.au
Sun Nov 25 00:35:41 UTC 2007


> Can I suggest an extensions to this
> If the backend becomes available after the frontend is started and the
> frontend is waiting on the select a backend screen, then the frontend
> should autoconnect to the backend.

Hmmm. That will be hard to implement,
because the autoconfigure code is completely
separate from the GUI backend picker.

I will think abut it, but making the current
code just wait for longer than 2 seconds would
be easier. After applying my second patch,
just change this line:

--- libs/libmyth/mythcontext.cpp        2007-11-24 22:14:44.000000000  
+1100
+++ libs/libmyth/mythcontext.cpp.new    2007-11-25 11:28:29.000000000  
+1100
@@ -596,7 +596,7 @@
      // 3. Try to automatically find the single backend:
      if (autoSelect)
      {
-        int count = UPnPautoconf();
+        int count = UPnPautoconf(5000);

          if (count == 0)
              failure = "No UPnP backends found";



Actually, if it is a regular thing on this machine,
just do a "sleep 5; mythfrontend" in the startup script?


> As atm i quit the frontend and restart so that I don't have to enter
> the pin stuff when I select it again


Assuming you are talking about the AppleTV,
these patches should both support the Apple remote?

--
Nigel Pearson, nigel at ind.tansu.com.au|Well, I own the hotel
Telstra Net. Eng., Sydney, Australia | and I also live in it.
Office: 9202 3900    Fax:  9261 3912 |My life is very much
Mobile: 0408 664435  Home: 9792 6998 |  like Monopoly




More information about the mythtv-dev mailing list