Bug #5307
openRotor tuning never finishes when client software is too impatient
0%
Description
When trying to tune to a mux on another position than the current one, tvh is waiting until the rotor is finished.
Nov 01 09:59:54 dvbarch tvheadend2095: subscription: 084F: "HTTP" subscribing to service "5W/11179V/Rai 1 HD", weight: 100, adapter: "STV0910 #0 : DVB-S #0", network: "5W", mux: "11179V", provider: "Rai", profile="pass", hostname="::ffff:172.23.27.133", client="VLC/3.0.4 LibVLC/3.0.4"
...
Nov 01 10:00:15 dvbarch tvheadend2095: diseqc: waiting 26 seconds to finish setup for USALS
If the client (like VLC) is too impatient, it tries to tune again in while the rotor is moving.
Now, tvh is sending the diseqc command again and starts waiting again for the rotor to finish moving.
Nov 01 10:00:35 dvbarch tvheadend2095: diseqc: waiting 26 seconds to finish setup for USALS
In that case, streaming never begings, even if the rotor is already at the right position.
Possible fix: tvh shall remember that is is waiting for the rotor to move (and the desired position), so it won't start the timer again, if the position from the tuning request and the position the rotor is moving to is the same.